Блог пользователя saba_tavdgiridze

Автор saba_tavdgiridze, 10 лет назад, По-английски

At first,sorry for my agnorance.So lets say: Everytime when I submit solution in UVa online_judge I get wrong_answer,wrong_answer,wrong_answer,.... and it's very annoying . Even on very easy,one-line problems.In internet there are many solutions on UVa problems ,so after disappointment i looked up others codes and there were nothing to distinguish.So I ask you,What's may be reason of this? thanks in advance!!!

  • Проголосовать: нравится
  • -4
  • Проголосовать: не нравится

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится +5 Проголосовать: не нравится

Possible reasons:

  1. You are reading from a different file/stream than indicated in the problem statement (UVa usually has stdin as input and stdout as output).
  2. Your code has some bugs. Try to find them, or use UVa toolkit or a correct solution to compare results.
  3. You are submitting the right code... to the wrong problem (happened to me sometimes, specially with QuickSubmit option).
  4. Lot of UVa problems want the different test cases separated by a blank line, but samples are only one case. This may lead to confussion if you don't read the statement carefully.
»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Maybe we can help you if you provide a link to a specific problem and your code for that problem(the one you are confident that should get AC but isn't)