ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1156
. Two Rounds
WA2 in Go is because of invalid "\n" handling in fmt.Scanf
Posted by
Aleksei Chernenkov
13 Nov 2025 15:19
In Go you should use `fmt.Scanf("%d %d\n", &a, &b)` instead of `fmt.Scanf("%d %d", &a, &b)`! Using the latter results in reading zeroes.
© 2000–2025
Timus Online Judge Team
. All rights reserved.