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 listJun 2, 2024 13:53GraceGraceScore: 6,746Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 13:536,71486,143,45155,727,00002,273,280
2Jun 2, 2024 13:526,72281,604,20954,798,000996,0002,273,280
3Jun 2, 2024 13:526,72381,669,26654,803,000996,0002,400,256
4Jun 2, 2024 13:526,72583,678,67253,825,0001,993,0002,273,280
5Jun 2, 2024 13:526,72781,607,30653,838,0001,994,0002,400,256
6Jun 2, 2024 13:536,72781,643,24455,830,00002,510,848
7Jun 2, 2024 13:536,72882,332,35954,848,000997,0002,273,280
8Jun 2, 2024 13:536,72884,403,12253,845,0001,994,0002,392,064
9Jun 2, 2024 13:536,72979,408,03153,858,0001,994,0002,273,280
10Jun 2, 2024 13:526,73182,217,84853,876,0001,995,0002,396,160
11Jun 2, 2024 13:536,73278,729,27854,876,000997,0002,273,280
12Jun 2, 2024 13:536,73675,945,64453,909,0001,996,0002,273,280
13Jun 2, 2024 13:526,73878,786,60853,925,0001,997,0002,396,160
14Jun 2, 2024 13:526,74379,528,81053,966,0001,998,0002,392,064
15Jun 2, 2024 13:526,74579,594,01353,984,0001,999,0002,273,280
16Jun 2, 2024 13:526,74676,337,92353,992,0001,999,0002,273,280
17Jun 2, 2024 13:526,74878,596,46954,005,0002,000,0002,490,368
18Jun 2, 2024 13:536,74878,542,68055,005,0001,000,0002,273,280
19Jun 2, 2024 13:536,74880,004,58454,010,0002,000,0002,396,160
20Jun 2, 2024 13:536,75376,652,71454,050,0002,001,0002,273,280
21Jun 2, 2024 13:536,85281,625,80154,873,0001,995,0002,404,352
22Jun 2, 2024 13:526,85780,355,55654,918,0001,997,0002,273,280
23Jun 2, 2024 13:526,86578,688,05955,984,000999,0002,408,448
24Jun 2, 2024 13:536,94884,894,38057,672,00002,273,280
25Jun 2, 2024 13:538,185130,679,37067,931,92302,293,760
26Jun 2, 2024 13:538,195139,844,26368,018,63702,285,568
27Jun 2, 2024 13:538,198146,493,48668,041,05702,285,568
28Jun 2, 2024 13:528,217136,890,48268,204,40602,289,664
29Jun 2, 2024 13:528,222125,434,49468,246,14302,297,856
30Jun 2, 2024 13:528,351141,439,41869,310,37602,277,376