Comments

I usually use java to solve problems. So I was using Java to solve Problem B today and got TLE. This has never happened to me in codeforces before. Can anyone help me figure out what might causing the problem? Java : Solution(TLE) C++ : Solution(AC)

Oww. Thank you. I understand now.

Thanks for your help! But the given time limit said 1 sec per test. So in a single test I'm only initializing 1e6 int right?

Can anyone explain why this O(n) solution of Problem C was giving me TLE? https://mirror.codeforces.com/contest/1335/submission/76571599

How are we ensuring putting the most frequent character will make the String a palindrome?

In C, We are checking for the max used char in k+i and replacing them. Where are we ensuring that the final text will become a palindrome?

On MofKCodeforces Round #601, 6 years ago
0

how come in problem b(div 2) they mentions n>=2 but has input n=1 at test 3?