Joey had saved a permutation of integers from 1 to n in a text file. All the numbers were written as decimal numbers without leading spaces. Then Joe made a practical joke on her: he removed all the spaces in the file. Help Joey to restore the original permutation after the Joe’s joke!
Joey had saved a permutation of integers from 1 to n in a text file. All the numbers were written as decimal numbers without leading spaces. Then Joe made a practical joke on her: he removed all the spaces in the file. Help Joey to restore the original permutation after the Joe’s joke!
(图片来源网络,侵删)
标签: HBC54479《人间油物》 数学 快速傅里叶变换(FFT)/快速数论变换(NTT)/快速沃尔什变换(FWT)Jokewithpermutation题解