Two different submissions

Правка en2, от allllekssssa, 2017-02-28 12:36:35

Hi,

I was doing previous div 1 round and I got WA on the second task ( 33rd testcase). I wasn't able to understand why I got Wrong Answer, so I asked question on contest blog and had a few answers. They were very helpful, but still I do not understand whole sotry about my mistake and some different outputs of my program ( all programs looks same for me ).

  1. Contest submission 25046285

  2. First submission after contest 25051362 (only added getchar(), immediately after cin )

  3. Second submission after contest 25087412 (I changed place of getchar(), and wrote it one line above)

I understood why I needed to add one extra getline(), but I do not understand why getchar() is needed and why second and third submissions gives different verdicts.

I will be grateful for any help :)

Теги wrong answer, help, submissions

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский allllekssssa 2017-03-01 02:23:05 1 Tiny change: 'n:25087377 (only add' -> 'n:25087377] (only add'
en3 Английский allllekssssa 2017-03-01 02:22:36 9 Tiny change: 'ission:25051362] (only add' -> 'ission:25087377 (only add'
en2 Английский allllekssssa 2017-02-28 12:36:35 2 Tiny change: 'will be greatful for an' -> 'will be grateful for an'
en1 Английский allllekssssa 2017-02-28 12:34:18 869 Initial revision (published)