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 4, 2024 15:52GraceGraceScore: 5,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 15:524,95564,957,38439,123,0002,006,0002,273,280
2Jun 4, 2024 15:524,95765,895,94439,139,0002,007,0002,269,184
3Jun 4, 2024 15:524,96262,681,31239,174,0002,008,0002,400,256
4Jun 4, 2024 15:524,96366,099,22440,193,0001,004,0002,400,256
5Jun 4, 2024 15:524,96364,159,23839,184,0002,009,0002,273,280
6Jun 4, 2024 15:524,96365,385,03439,188,0002,009,0002,273,280
7Jun 4, 2024 15:524,96463,242,93539,189,0002,009,0002,404,352
8Jun 4, 2024 15:524,96668,995,50539,208,0002,010,0002,273,280
9Jun 4, 2024 15:524,97068,793,43239,243,0002,012,0002,273,280
10Jun 4, 2024 15:524,97267,120,69640,259,0001,006,0002,396,160
11Jun 4, 2024 15:524,97363,968,13240,273,0001,006,0002,273,280
12Jun 4, 2024 15:524,97466,076,62841,282,00002,396,160
13Jun 4, 2024 15:524,97968,856,24541,327,00002,273,280
14Jun 4, 2024 15:524,98363,825,92241,356,00002,273,280
15Jun 4, 2024 15:525,01771,045,48241,642,00002,273,280
16Jun 4, 2024 15:525,02468,881,08841,696,00002,396,160
17Jun 4, 2024 15:525,05169,915,50640,925,000998,0002,273,280
18Jun 4, 2024 15:525,07769,146,51240,137,0002,006,0002,408,448
19Jun 4, 2024 15:525,103106,433,15342,355,75402,277,376
20Jun 4, 2024 15:525,105125,726,48942,372,78002,281,472
21Jun 4, 2024 15:515,107108,740,92242,388,34902,289,664
22Jun 4, 2024 15:525,113112,053,77542,439,70302,277,376
23Jun 4, 2024 15:525,123106,054,34542,522,94202,285,568
24Jun 4, 2024 15:525,133110,498,80542,603,52902,289,664
25Jun 4, 2024 15:525,133118,590,88042,606,24302,273,280
26Jun 4, 2024 15:525,139121,342,16042,650,56902,285,568
27Jun 4, 2024 15:525,141100,400,93142,668,46602,285,568
28Jun 4, 2024 15:515,143113,952,90542,689,54902,281,472
29Jun 4, 2024 15:525,150112,576,26642,748,18002,293,760
30Jun 4, 2024 15:515,162112,165,91142,845,40202,289,664
31Jun 4, 2024 15:525,91370,043,35948,076,0001,001,0002,273,280
32Jun 4, 2024 15:525,92175,094,75647,142,0002,006,0002,273,280
33Jun 4, 2024 15:525,92370,949,10247,155,0002,006,0002,273,280
34Jun 4, 2024 15:525,93273,042,20248,234,0001,004,0002,273,280
35Jun 4, 2024 15:525,95271,599,69748,397,0001,008,0002,400,256
36Jun 4, 2024 15:525,97377,612,73049,576,00002,396,160