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 14, 2024 04:15zielajzielajScore: 4,151Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 04:154,12055,095,12033,194,0001,005,0002,371,584
2Nov 14, 2024 04:154,12854,512,64132,248,0002,015,0002,527,232
3Nov 14, 2024 04:154,12962,281,10533,262,0001,007,0002,383,872
4Nov 14, 2024 04:154,15153,702,30733,443,0001,013,0002,371,584
5Nov 14, 2024 04:154,15360,872,98134,468,00002,367,488
6Nov 14, 2024 04:154,43865,022,40334,847,0001,991,0002,363,392