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 listJan 23, 2025 20:53Cameron AavikCameron AavikScore: 21,867Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 20:5321,845212,337,902121,212,00060,105,0002,424,832
2Jan 23, 2025 20:5321,867212,879,124124,339,00057,156,0002,457,600
3Jan 23, 2025 20:5322,100208,284,296135,318,00048,113,0002,453,504