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 14:52GraceGraceScore: 5,116Success
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 14:514,99562,370,18840,449,0001,011,0002,273,280
2Jun 4, 2024 14:524,99964,568,60441,488,00002,273,280
3Jun 4, 2024 14:525,00464,118,63540,523,0001,013,0002,396,160
4Jun 4, 2024 14:515,00565,021,92840,531,0001,013,0002,273,280
5Jun 4, 2024 14:525,00665,935,95741,547,00002,273,280
6Jun 4, 2024 14:515,00770,009,50140,548,0001,013,0002,412,544
7Jun 4, 2024 14:525,00766,200,60540,541,0001,013,0002,273,280
8Jun 4, 2024 14:515,01268,008,73040,586,0001,014,0002,273,280
9Jun 4, 2024 14:525,01271,131,70740,587,0001,014,0002,273,280
10Jun 4, 2024 14:515,01369,389,82940,591,0001,014,0002,273,280
11Jun 4, 2024 14:515,01772,738,33440,628,0001,015,0002,404,352
12Jun 4, 2024 14:515,01970,004,91840,643,0001,016,0002,273,280
13Jun 4, 2024 14:515,01967,044,84839,672,0001,983,0002,400,256
14Jun 4, 2024 14:525,02071,384,92441,669,00002,400,256
15Jun 4, 2024 14:525,03965,114,38239,831,0001,991,0002,486,272
16Jun 4, 2024 14:525,04070,683,81340,834,000995,0002,404,352
17Jun 4, 2024 14:525,04265,759,31939,856,0001,992,0002,273,280
18Jun 4, 2024 14:515,04368,466,27939,860,0001,993,0002,273,280
19Jun 4, 2024 14:525,116115,109,91342,458,81902,293,760
20Jun 4, 2024 14:525,118111,593,25142,480,08902,277,376
21Jun 4, 2024 14:525,121105,788,87442,500,80902,281,472
22Jun 4, 2024 14:515,122100,624,61542,515,24402,289,664
23Jun 4, 2024 14:515,126119,361,43342,545,59702,289,664
24Jun 4, 2024 14:525,126126,602,75842,549,47202,281,472
25Jun 4, 2024 14:525,129102,766,68742,568,84202,289,664
26Jun 4, 2024 14:525,131111,383,10142,587,90302,297,856
27Jun 4, 2024 14:525,136112,935,52642,631,40302,289,664
28Jun 4, 2024 14:515,177123,514,06542,968,60002,281,472
29Jun 4, 2024 14:525,180105,264,17342,994,39602,281,472
30Jun 4, 2024 14:525,227117,954,90143,385,88402,289,664
31Jun 4, 2024 14:516,21783,331,81451,600,00002,408,448
32Jun 4, 2024 14:526,24576,668,97350,840,000996,0002,400,256
33Jun 4, 2024 14:516,24774,000,07851,846,00002,514,944
34Jun 4, 2024 14:526,25479,729,49749,909,0001,996,0002,273,280
35Jun 4, 2024 14:526,26874,119,85451,022,0001,000,0002,273,280
36Jun 4, 2024 14:516,27783,423,95350,098,0002,003,0002,273,280