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

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

I recently tried to participate in virtual contest 155 div 2 and 154 div 2. I am getting errors on first problem of both the contest. See my latest unofficial solutions : http://codeforces.com/submissions/praveendhinwa

In First problem of 154 Div2 A (Boys and Girls) , I am getting memory limit exceeded. In First problem of 155 Div2 A (Cards with Numbers) , I am getting runtime error and wrong answers.

Both these errors are happening in even test case no 1.

Please help!!!

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

»
11 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Problems will require file I/O: you have to read data from input.txt and write data to output.txt.

  • »
    »
    11 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thank you,

    But I have a query , I had participated in a contest on codeforces in which input and output was from the file. If we do not take the input and output from the file , It gave the error Idleness limit exceeded.

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

      I do not know because of what it is, but sometimes your program still manages to read the input data (ofcourse — wrong).

      Example: "n" can be read like 10^9, so it will be — TL or ML.

      P.S. Sorry for google translate.