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 28, 2023 19:38LukasLukasScore: 180,109Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 28, 2023 19:35155,5321,354,265,5971,290,916,35402,285,568
2Aug 28, 2023 19:38166,8551,445,773,0241,384,898,20802,285,568
3Aug 28, 2023 19:35177,0391,534,184,7831,469,420,27502,281,472
4Aug 28, 2023 19:38180,1091,565,732,2221,494,906,05002,277,376
5Aug 28, 2023 19:38183,8481,595,896,2131,525,941,98402,277,376
6Aug 28, 2023 19:35197,7901,714,334,8631,641,660,99702,289,664