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

slow_coder4's blog

By slow_coder4, history, 11 years ago, In English

I got this problem TLE. help How can i handle my code . My code

  • Vote: I like it
  • -8
  • Vote: I do not like it

| Write comment?
»
11 years ago, hide # |
← Rev. 3  
Vote: I like it +21 Vote: I do not like it

ask your friends, slow_coder2 slow_coder3

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Use a for loop for number of coins. Then check Either you have taken the coin for maximum or not.