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 9, 2024 22:51Joad NacerJoad NacerScore: 7,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 22:517,685137,053,37763,788,75002,281,472
2May 9, 2024 22:517,859125,580,51065,231,24102,269,184
3May 9, 2024 22:517,93490,497,53963,856,0001,995,0002,273,280
4May 9, 2024 22:517,93590,593,68963,867,0001,995,0002,273,280
5May 9, 2024 22:517,93991,875,10763,897,0001,996,0002,285,568
6May 9, 2024 22:517,94293,464,98263,922,0001,997,0002,269,184
7May 9, 2024 22:517,94790,030,91763,959,0001,998,0002,273,280
8May 9, 2024 22:517,95086,296,77163,982,0001,999,0002,269,184
9May 9, 2024 22:518,09693,833,92665,188,0002,005,0002,531,328
10May 9, 2024 22:518,13191,888,96366,481,0001,007,0002,269,184
11May 9, 2024 22:518,15098,732,63066,632,0001,009,0002,285,568
12May 9, 2024 22:518,90496,615,86671,905,0001,997,0002,265,088
13May 9, 2024 22:518,951102,863,62973,289,0001,003,0002,285,568
14May 9, 2024 22:5110,095112,873,94481,791,0001,994,0002,285,568
15May 9, 2024 22:5116,039194,792,370133,125,86102,277,376