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 listJul 20, 2023 21:59gchebanovgchebanovScore: 8,407Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 21:597,39987,150,75361,412,00002,428,928
2Jul 20, 2023 21:597,41687,066,58061,550,00002,424,832
3Jul 20, 2023 21:597,42084,833,19160,575,0001,009,0002,473,984
4Jul 20, 2023 21:597,43089,265,05560,657,0001,010,0002,408,448
5Jul 20, 2023 21:597,43087,136,50061,665,00002,420,736
6Jul 20, 2023 21:597,44686,269,05259,806,0001,993,0002,469,888
7Jul 20, 2023 21:597,45396,496,20660,859,000997,0002,416,640
8Jul 20, 2023 21:597,48888,078,07460,143,0002,004,0002,469,888
9Jul 20, 2023 21:597,56688,286,97960,806,0001,993,0002,424,832
10Jul 20, 2023 21:598,37091,923,63168,469,0001,006,0002,473,984
11Jul 20, 2023 21:598,40796,854,39468,786,000996,0002,465,792
12Jul 20, 2023 21:598,42097,703,32868,886,000998,0002,469,888
13Jul 20, 2023 21:598,42394,759,39267,910,0001,997,0002,408,448
14Jul 20, 2023 21:598,43595,622,61668,012,0002,000,0002,412,544
15Jul 20, 2023 21:598,447102,106,07069,112,0001,001,0002,416,640
16Jul 20, 2023 21:598,45895,811,74869,200,0001,002,0002,404,352
17Jul 20, 2023 21:598,50496,528,02669,572,0001,008,0002,469,888
18Jul 20, 2023 21:598,52797,254,02669,777,000996,0002,437,120
19Jul 20, 2023 21:598,740133,723,10472,541,69102,289,664
20Jul 20, 2023 21:598,766138,752,53172,760,38802,297,856
21Jul 20, 2023 21:598,817127,960,46273,181,83402,285,568