sinasadi's blog

By sinasadi, 10 years ago, In English

why my submission in problem 36 A have runtime eror ? whatever i see correct answer in CUSTOM INVOCATION. code

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

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

do you saw those two lines
input.txt
output.txt

so you have to use
freopen("output.txt","w",stdout);
freopen("input.txt","r",stdin);

but codeforces is not stupid just you need to do more practice on it

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

    so , tanks! i never solve such problem whit this strange lines .

»
10 years ago, # |
  Vote: I like it +6 Vote: I do not like it

Short answer to the title: No.

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

Direct Stupid!!!!! Isn't it a bit harsh when the answer is no?

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

Hi everybody. After a long time of thinking about this question, I found the answer. The answer is yes. Please view the proof here: https://open.kattis.com/problems/kodkraft