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 22:14zielajzielajScore: 4,344Success
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 22:144,08661,334,34131,922,0001,995,0002,371,584
2Nov 14, 2024 22:144,11156,270,52033,118,0001,003,0002,355,200
3Nov 14, 2024 22:144,12657,880,20832,235,0002,014,0002,281,472
4Nov 14, 2024 22:144,34457,069,47934,050,0002,002,0002,359,296
5Nov 14, 2024 22:144,41859,919,56436,666,00002,273,280
6Nov 14, 2024 22:144,41860,662,33935,655,0001,018,0002,277,376