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 listAug 9, 2023 12:01Mikhail SolovevMikhail SolovevScore: 188,445Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2023 12:01188,2761,630,770,3951,562,688,66902,211,840
2Aug 9, 2023 12:03188,3621,624,580,0581,563,406,26002,220,032
3Aug 9, 2023 12:03188,4241,621,642,0831,563,920,34202,224,128
4Aug 9, 2023 12:01188,4451,633,539,1431,564,096,65402,211,840
5Aug 9, 2023 12:01188,4631,634,433,0841,564,246,09002,211,840
6Aug 9, 2023 12:03188,8201,620,105,4091,567,203,79702,220,032