Комментарии
На shaanknight → CodeCraft-20 (Div. 2), 7 лет назад
0

72449591 You can look this. I hope this can help you

На shaanknight → CodeCraft-20 (Div. 2), 7 лет назад
0

For B, I think violence will time out, so I turned to finding the rule. After writing a few, I found that when I value K, the composition of strings after operation is like this. First, it is from a [k] to a [len]

Then judge whether the parity of K and Len is the same, and then continue from a [1] to a [k-1]

The difference is from a [k-1] to a [1]. I hope my approach can help you

На shaanknight → CodeCraft-20 (Div. 2), 7 лет назад
0

For B, I think violence will time out, so I turned to finding the rule. After writing a few, I found that when I value K, the composition of strings after operation is like this. First, it is from a [k] to a [len]

Then judge whether the parity of K and Len is the same, and then continue from a [1] to a [k-1]

The difference is from a [k-1] to a [1]. I hope my approach can help you

На vovuh → Codeforces Round #624 (Div. 3), 7 лет назад
0

The test data of question C in this competition does not exceed the 32-bit integer range, so do you calculate the rating this time?

Thank you very much

+1

How do I know if D Euler(m / gcd(a,m) )

How do you make GCD (a, m) = GCD (b, m)