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:33GraceGraceError
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:3300000Error: expected "53689659715681689 ", got "53689616766008729 "
2Jun 7, 2024 13:334,05567,219,79531,616,0002,039,0002,490,368
3Jun 7, 2024 13:334,06060,013,66932,677,0001,021,0002,338,816
4Jun 7, 2024 13:334,07457,395,65930,833,0002,983,0002,486,272
5Jun 7, 2024 13:334,07864,223,89430,858,0002,986,0002,490,368
6Jun 7, 2024 13:334,07859,579,56232,849,000995,0002,330,624
7Jun 7, 2024 13:334,08157,110,30731,877,0001,992,0002,273,280
8Jun 7, 2024 13:334,08260,127,72730,888,0002,989,0002,273,280
9Jun 7, 2024 13:334,08457,990,68230,905,0002,990,0002,265,088
10Jun 7, 2024 13:334,08956,851,90131,946,0001,996,0002,478,080
11Jun 7, 2024 13:334,09260,856,43931,964,0001,997,0002,490,368
12Jun 7, 2024 13:334,09457,594,83231,984,0001,999,0002,473,984
13Jun 7, 2024 13:334,09961,304,03532,018,0002,001,0002,273,280
14Jun 7, 2024 13:334,10055,636,35232,028,0002,001,0002,273,280
15Jun 7, 2024 13:334,10156,694,41332,040,0002,002,0002,486,272
16Jun 7, 2024 13:334,10556,515,05831,062,0003,006,0002,486,272
17Jun 7, 2024 13:334,10664,684,26933,075,0001,002,0002,486,272
18Jun 7, 2024 13:334,11954,295,53231,173,0003,016,0002,490,368
19Jun 7, 2024 13:334,12053,244,38932,185,0002,011,0002,478,080
20Jun 7, 2024 13:334,23556,665,28331,132,0004,017,000352,256
21Jun 7, 2024 13:334,253100,280,65835,303,53002,236,416
22Jun 7, 2024 13:334,259100,787,45235,353,47702,248,704
23Jun 7, 2024 13:334,26262,141,22131,334,0004,043,000262,144
24Jun 7, 2024 13:334,266106,807,86635,405,71702,236,416
25Jun 7, 2024 13:334,27599,167,53135,479,58802,232,320
26Jun 7, 2024 13:334,281100,448,78735,528,87002,236,416
27Jun 7, 2024 13:334,28498,430,18735,556,95702,371,584
28Jun 7, 2024 13:334,292114,111,34835,620,19502,232,320
29Jun 7, 2024 13:334,32562,858,29331,907,0003,988,000339,968
30Jun 7, 2024 13:334,346106,807,48436,069,69002,232,320
31Jun 7, 2024 13:334,41861,460,85233,617,0003,056,000176,128
32Jun 7, 2024 13:334,45065,116,04032,942,0003,993,000176,128
33Jun 7, 2024 13:334,458110,367,06436,999,46802,252,800
34Jun 7, 2024 13:334,67767,706,92431,853,0006,968,000278,528