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 6, 2024 05:46GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 05:4600000Error: expected "53691085617276907 ", got "53691042667603947 "
2Jun 6, 2024 05:4500000Error: expected "53684969784614300 ", got "53684969778060700 "
3Jun 6, 2024 05:464,24362,760,02634,212,0001,006,000380,928
4Jun 6, 2024 05:464,31667,443,94734,828,000995,000389,120
5Jun 6, 2024 05:464,31761,599,01533,837,0001,990,000176,128
6Jun 6, 2024 05:464,33461,383,56632,972,0002,997,0002,490,368
7Jun 6, 2024 05:464,33561,702,04833,980,0001,998,0002,486,272
8Jun 6, 2024 05:464,35261,047,12533,111,0003,010,0002,273,280
9Jun 6, 2024 05:464,36259,603,88133,186,0003,016,0002,482,176
10Jun 6, 2024 05:464,36856,987,71433,236,0003,021,0002,494,464
11Jun 6, 2024 05:464,36860,619,04734,239,0002,014,0002,486,272
12Jun 6, 2024 05:464,37358,146,79834,278,0002,016,0002,478,080
13Jun 6, 2024 05:464,40662,362,81036,572,00002,273,280
14Jun 6, 2024 05:464,40963,208,36935,576,0001,016,0002,273,280
15Jun 6, 2024 05:464,42165,335,95235,673,0001,019,0002,482,176
16Jun 6, 2024 05:464,42366,472,52334,676,0002,039,0002,273,280
17Jun 6, 2024 05:464,43869,185,48633,846,0002,986,0002,273,280
18Jun 6, 2024 05:464,44461,282,26833,897,0002,990,0002,273,280
19Jun 6, 2024 05:464,44758,592,93534,918,0001,995,0002,318,336
20Jun 6, 2024 05:464,451108,414,49836,942,70502,236,416
21Jun 6, 2024 05:464,46063,618,95635,021,0002,001,0002,453,504
22Jun 6, 2024 05:464,470112,252,91637,103,65602,236,416
23Jun 6, 2024 05:464,47960,631,33735,165,0002,009,0002,281,472
24Jun 6, 2024 05:464,481112,986,70937,194,53102,228,224
25Jun 6, 2024 05:464,48661,622,26935,224,0002,012,0002,342,912
26Jun 6, 2024 05:454,519112,241,51937,505,97202,248,704
27Jun 6, 2024 05:464,520111,919,33337,516,38902,244,608
28Jun 6, 2024 05:464,526100,794,01037,566,44502,236,416
29Jun 6, 2024 05:464,54399,659,57337,710,21902,236,416
30Jun 6, 2024 05:454,561101,305,49837,859,12502,244,608
31Jun 6, 2024 05:464,57866,815,06835,997,0001,999,0002,273,280
32Jun 6, 2024 05:454,939101,163,74840,995,38702,240,512