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 listMay 29, 2024 15:39GraceGraceScore: 7,842Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 15:397,48791,484,54259,132,0003,006,0002,523,136
2May 29, 2024 15:397,49788,496,17958,211,0004,014,0002,437,120
3May 29, 2024 15:397,50686,846,92158,278,0004,019,0002,277,376
4May 29, 2024 15:397,73790,162,11760,202,0004,013,0002,338,816
5May 29, 2024 15:397,76488,624,81360,411,0004,027,0002,383,872
6May 29, 2024 15:397,77797,120,87663,540,0001,008,0002,420,736
7May 29, 2024 15:397,79792,225,33161,728,0002,986,0002,457,600
8May 29, 2024 15:397,84292,377,13061,081,0004,005,0002,433,024
9May 29, 2024 15:397,84388,496,29461,094,0004,006,0002,297,856
10May 29, 2024 15:397,85388,408,35264,175,0001,002,0002,281,472
11May 29, 2024 15:397,86390,167,99661,246,0004,016,0002,359,296
12May 29, 2024 15:397,87390,034,23761,326,0004,021,0002,428,928
13May 29, 2024 15:398,106130,244,37867,282,04002,240,512
14May 29, 2024 15:398,163135,534,48967,756,90202,310,144
15May 29, 2024 15:398,197135,542,14868,037,91802,187,264