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 7, 2024 12:07GraceGraceScore: 4,225Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 12:074,11056,269,34832,106,0002,006,000176,128
2Jun 7, 2024 12:074,13658,179,79533,321,0001,009,000176,128
3Jun 7, 2024 12:074,16159,756,53032,509,0002,031,000176,128
4Jun 7, 2024 12:074,16560,439,56132,533,0002,033,000176,128
5Jun 7, 2024 12:074,16558,493,04334,573,00002,478,080
6Jun 7, 2024 12:074,17260,863,60133,611,0001,018,0002,486,272
7Jun 7, 2024 12:074,18066,760,60032,656,0002,041,0002,273,280
8Jun 7, 2024 12:074,18460,233,99932,684,0002,042,0002,482,176
9Jun 7, 2024 12:074,19370,256,49533,805,000994,0002,273,280
10Jun 7, 2024 12:074,19360,384,42233,811,000994,0002,383,872
11Jun 7, 2024 12:074,19464,859,50232,823,0001,989,000385,024
12Jun 7, 2024 12:074,19763,589,09133,840,000995,0002,273,280
13Jun 7, 2024 12:074,19761,005,10231,847,0002,985,0002,273,280
14Jun 7, 2024 12:074,20159,618,24231,879,0002,988,0002,486,272
15Jun 7, 2024 12:074,20263,351,66931,884,0002,989,0002,273,280
16Jun 7, 2024 12:074,20662,758,84032,917,0001,995,0002,273,280
17Jun 7, 2024 12:074,21255,773,11131,962,0002,996,0002,371,584
18Jun 7, 2024 12:074,21964,221,43334,020,0001,000,0002,273,280
19Jun 7, 2024 12:074,22560,328,35733,061,0002,003,0002,494,464
20Jun 7, 2024 12:074,22860,263,03432,088,0003,008,0002,273,280
21Jun 7, 2024 12:074,23658,106,66534,156,0001,004,0002,273,280
22Jun 7, 2024 12:074,23960,683,34532,167,0003,015,0002,482,176
23Jun 7, 2024 12:074,24460,313,80133,214,0002,012,0002,482,176
24Jun 7, 2024 12:074,33896,876,43936,001,53002,244,608
25Jun 7, 2024 12:074,344104,895,24436,052,30402,236,416
26Jun 7, 2024 12:074,360112,699,04036,186,27202,232,320
27Jun 7, 2024 12:074,362102,358,60036,201,18902,240,512
28Jun 7, 2024 12:074,391123,859,16036,444,75602,232,320
29Jun 7, 2024 12:074,397113,304,24436,493,61602,240,512
30Jun 7, 2024 12:074,40164,410,87435,517,0001,014,0002,273,280
31Jun 7, 2024 12:074,437105,485,78336,824,77402,232,320
32Jun 7, 2024 12:074,44494,894,55036,887,23002,248,704
33Jun 7, 2024 12:074,450122,105,05836,938,24302,252,800
34Jun 7, 2024 12:074,461101,773,25737,025,26402,236,416
35Jun 7, 2024 12:074,49899,000,95937,332,05902,248,704
36Jun 7, 2024 12:074,678101,911,56238,825,01002,232,320