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 6, 2024 21:19Michael KlimenkoMichael KlimenkoScore: 1,161,459Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2024 21:191,155,9499,625,501,6689,525,407,00068,966,0002,281,472
2Nov 6, 2024 21:191,161,4599,668,567,4789,561,145,00078,968,0002,281,472
3Nov 6, 2024 21:191,168,2339,727,547,2049,630,377,00065,961,0002,281,472