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 listNov 24, 2024 02:27MatthiasMatthiasScore: 10,319Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2024 02:2710,286109,358,01884,368,0001,004,0002,523,136
2Nov 24, 2024 02:2710,297111,248,67084,464,0001,005,0002,285,568
3Nov 24, 2024 02:2710,300112,307,64384,487,0001,005,0002,523,136
4Nov 24, 2024 02:2710,319115,417,65884,643,0001,007,0002,289,664
5Nov 24, 2024 02:2710,334110,438,52684,773,000997,0002,281,472
6Nov 24, 2024 02:2710,335117,336,32083,787,0001,994,0002,289,664