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

Автор EROR, история, 8 лет назад, По-английски

In a previous contest i tried to solve a problem using go. After getting some WA i was able to solve this using C++. Now I am curious what is the logical difference in those two code, c++(17785256) and go(17798325). I couldn't find any.

The input that gives the go solution a WA, works fine and produces the AC output in here and in my workstation. I am using go1.6.2, where CF uses 1.5.2.

Is there anything wrong in my go submission? or is it a CF BUG?

Теги c++, go
  • Проголосовать: нравится
  • +12
  • Проголосовать: не нравится

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

I don't know Go, but now it's Accepted

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

    "Scanf, Fscanf and Sscanf require that (after skipping spaces) newlines in the format are matched by newlines in the input and vice versa. This behavior differs from the corresponding routines in C, which uniformly treat newlines as spaces."