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:34GraceGraceScore: 6,873Success
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:346,70486,610,72453,624,0002,023,0002,433,024
2May 29, 2024 15:346,73385,339,06952,832,0003,048,0002,433,024
3May 29, 2024 15:346,79285,013,43653,352,0003,019,0002,322,432
4May 29, 2024 15:346,82883,745,61153,640,0003,036,0002,498,560
5May 29, 2024 15:346,85480,977,89954,896,0001,996,0002,428,928
6May 29, 2024 15:346,86279,692,29053,954,0002,997,0002,269,184
7May 29, 2024 15:346,87379,522,77753,041,0004,003,0002,428,928
8May 29, 2024 15:346,87382,408,93753,040,0004,003,0002,433,024
9May 29, 2024 15:346,87778,262,01855,077,0002,002,0002,433,024
10May 29, 2024 15:346,90178,648,18653,258,0004,019,0002,428,928
11May 29, 2024 15:346,90683,124,93953,295,0004,022,0002,281,472
12May 29, 2024 15:346,97886,595,96453,924,0003,994,0002,445,312
13May 29, 2024 15:347,255118,164,12360,218,10702,191,360
14May 29, 2024 15:347,271116,493,27760,350,06702,183,168
15May 29, 2024 15:347,344114,657,78660,953,42702,306,048