Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Jima's blog

By Jima, history, 8 years ago, In English

i am trying to solve http://www.spoj.com/problems/NUMTSN/ this problem on spoj. can someone who has solved this problem give me some advice why my code gives me wa. https://ideone.com/Ycnepw

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

Check for the following testcase:

 1 1 100000000000000000000000000000000000000000000000000 

I think it should be 968822070.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Funny, my AC solution gives 129112453 as answer. Some people say it should be 92044422 or 129112454, and your output is 968822070.

    Which is the correct answer? I guess we will never know :D