Comments
On 300iq → Codeforces Round #504, 8 years ago
0

When you use a = a+'(' , first of all it creates a copy of a and then it inserts ( and then it assigns to your main string a . you can simply do this :

a+='(' . It will just insert the character

ko_osaga , What is IA ?

+1

I know that i should use bigmod instead of the loop , then , the power will be calculated in O(log n) , but i am a beginner , so I started from easy approach

0

Auto comment: topic has been updated by Full_mental (previous revision, new revision, compare).