cse_anik's blog

By cse_anik, history, 2 years ago, In English

Where is the mistake in this code? I could not understand. Please answer this code।

Codeforces problem 318A-Even Odds

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

| Write comment?
»
2 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Well where is your code?
And you haven't even done a submission

Sorry

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

The problem is that you are running a loop of n and n could be at most 10^12 which C can't afford even in 10s so you should find a solution which doen't contains a loop (if want the solution tell me)