codeforces【B. Reversing Encryption】
A stringsof lengthncan be encrypted by the following algorithm:iterate over all divisors ofnin decreasing order (i.e. fromnto1), for each divisord, reverse the substrings[1…d] (i.e. the substring which starts at position1and ends at pos...
原创
2021-05-26 20:17:06 ·
85 阅读 ·
0 评论