Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJul 1, 2021 15:20Vitaliy F.Vitaliy F.Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2021 15:2000000Error: exit with code 2: panic: file type does not support deadline goroutine 1 [running]: main.processV2(0x557a507790c0, 0xc00000e018, 0x557a50776b78, 0xc000026750) /tmp/solution345353565/main.go:55 +0x295 main.main() /tmp/solution345353565/main.go...stderr