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:51GraceGraceScore: 6,516Success
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:516,39675,183,43350,081,0003,004,0002,269,184
2May 29, 2024 15:516,40173,660,55050,122,0003,007,0002,289,664
3May 29, 2024 15:516,46478,611,85450,616,0003,036,0002,441,216
4May 29, 2024 15:516,46682,484,22351,641,0002,025,0002,453,504
5May 29, 2024 15:516,47079,836,23851,678,0002,026,0002,347,008
6May 29, 2024 15:516,48583,281,75850,781,0003,046,0002,277,376
7May 29, 2024 15:516,49676,637,01249,923,0003,993,0002,289,664
8May 29, 2024 15:516,51680,273,65950,078,0004,006,0002,269,184
9May 29, 2024 15:516,52476,634,44051,143,0003,008,0002,498,560
10May 29, 2024 15:516,55782,281,51950,392,0004,031,0002,281,472
11May 29, 2024 15:516,56782,285,35250,467,0004,037,0002,289,664
12May 29, 2024 15:516,72681,813,67552,837,0002,990,0002,396,160
13May 29, 2024 15:517,076133,484,02958,729,00102,183,168
14May 29, 2024 15:517,126130,457,78959,149,56502,314,240
15May 29, 2024 15:517,141121,198,63959,272,55402,183,168