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 13:42GraceGraceError
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 13:4200000Error: expected "53684020971141711 ", got "53684120575390892 "
2Jun 7, 2024 13:424,01261,123,32530,276,0003,027,0002,273,280
3Jun 7, 2024 13:424,02157,993,60731,349,0002,022,0002,490,368
4Jun 7, 2024 13:424,02353,291,93431,366,0002,023,0002,486,272
5Jun 7, 2024 13:424,02961,408,45431,417,0002,026,0002,273,280
6Jun 7, 2024 13:424,04054,778,65732,520,0001,016,0002,392,064
7Jun 7, 2024 13:424,04658,450,17232,564,0001,017,0002,273,280
8Jun 7, 2024 13:424,05158,982,97933,621,00002,490,368
9Jun 7, 2024 13:424,05358,899,17432,625,0001,019,0002,482,176
10Jun 7, 2024 13:424,05469,588,74032,629,0001,019,0002,482,176
11Jun 7, 2024 13:424,07562,126,45931,833,0001,989,0002,273,280
12Jun 7, 2024 13:424,07758,975,65231,848,0001,990,0002,273,280
13Jun 7, 2024 13:424,07858,703,29532,852,000995,0002,273,280
14Jun 7, 2024 13:424,08557,079,29830,911,0002,991,0002,273,280
15Jun 7, 2024 13:424,08762,512,46132,922,000997,0002,289,664
16Jun 7, 2024 13:424,09255,753,95630,965,0002,996,0002,273,280
17Jun 7, 2024 13:424,09259,168,81831,969,0001,998,0002,486,272
18Jun 7, 2024 13:424,09758,116,53233,007,0001,000,0002,478,080
19Jun 7, 2024 13:424,10559,856,09632,066,0002,004,0002,273,280
20Jun 7, 2024 13:424,14063,556,61732,337,0002,021,0002,273,280
21Jun 7, 2024 13:424,15456,685,01632,450,0002,028,0002,482,176
22Jun 7, 2024 13:424,258115,346,99835,339,58102,236,416
23Jun 7, 2024 13:434,258103,915,62735,341,00002,244,608
24Jun 7, 2024 13:424,266103,480,73535,411,55002,240,512
25Jun 7, 2024 13:434,27798,407,94535,496,66602,232,320
26Jun 7, 2024 13:424,281106,912,42035,528,37702,248,704
27Jun 7, 2024 13:434,294103,718,24235,637,95302,244,608
28Jun 7, 2024 13:424,338118,104,51036,008,05102,248,704
29Jun 7, 2024 13:424,37758,084,26133,303,0003,027,0002,269,184
30Jun 7, 2024 13:424,47063,288,13232,085,0005,013,000286,720
31Jun 7, 2024 13:424,517103,798,95537,490,61302,240,512
32Jun 7, 2024 13:424,580111,819,52838,015,26702,232,320
33Jun 7, 2024 13:424,58361,435,48632,035,0006,006,0002,379,776
34Jun 7, 2024 13:424,70165,957,62332,013,0007,002,0002,379,776