Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

nguyenchicuong's blog

By nguyenchicuong, 12 years ago, In English

Hello everybody.

I have no idea to improve my code for this problem to increase speed. Can you help me?

This is my submission: 9235975

Thanks for reading :D

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
12 years ago, hide # |
← Rev. 3  
Vote: I like it +1 Vote: I do not like it

I think one of these advices will help you:
1. Replace: cin/cout -> scanf/printf.
2. Add line "ios_base::sync_with_stdio(0);" at the beggining of your code and replace all scanf/printf to cin/cout

»
12 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

thanks you, i found the errors.