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:07GraceGraceError
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:0700000Error: expected "53688472770945430 ", got "53688472770879894 "
2Jun 7, 2024 12:074,15457,294,31232,453,0002,028,0002,273,280
3Jun 7, 2024 12:074,17761,116,87032,628,0002,039,000176,128
4Jun 7, 2024 12:074,19765,437,41332,843,0001,990,0002,273,280
5Jun 7, 2024 12:074,20356,261,75031,894,0002,990,0002,486,272
6Jun 7, 2024 12:074,21357,359,01131,972,0002,997,000385,024
7Jun 7, 2024 12:074,21464,536,21331,979,0002,998,000176,128
8Jun 7, 2024 12:074,22358,262,03133,049,0002,003,000385,024
9Jun 7, 2024 12:074,23060,799,80932,100,0003,009,0002,490,368
10Jun 7, 2024 12:074,23358,719,76432,121,0003,011,0002,482,176
11Jun 7, 2024 12:074,23358,185,98633,130,0002,007,0002,273,280
12Jun 7, 2024 12:074,23758,905,32333,158,0002,009,0002,273,280
13Jun 7, 2024 12:074,23956,342,29433,176,0002,010,0002,273,280
14Jun 7, 2024 12:074,24057,574,64034,184,0001,005,0002,273,280
15Jun 7, 2024 12:074,24355,713,72333,209,0002,012,0002,510,848
16Jun 7, 2024 12:074,24858,057,16633,245,0002,014,0002,273,280
17Jun 7, 2024 12:074,25160,628,17634,275,0001,008,000278,528
18Jun 7, 2024 12:074,25260,002,23932,264,0003,024,0002,482,176
19Jun 7, 2024 12:074,26857,900,80434,409,0001,012,0002,273,280
20Jun 7, 2024 12:074,27657,405,43933,463,0002,028,0002,273,280
21Jun 7, 2024 12:074,27757,902,70033,474,0002,028,0002,490,368
22Jun 7, 2024 12:074,28060,657,42934,508,0001,014,0002,273,280
23Jun 7, 2024 12:074,28961,954,84433,565,0002,034,0002,273,280
24Jun 7, 2024 12:074,30466,006,95634,705,0001,020,000385,024
25Jun 7, 2024 12:074,31963,148,54034,827,0001,024,0002,273,280
26Jun 7, 2024 12:074,36394,556,97536,209,18102,244,608
27Jun 7, 2024 12:074,38098,058,55736,355,80002,236,416
28Jun 7, 2024 12:074,381121,627,46236,361,06202,240,512
29Jun 7, 2024 12:074,40791,818,09036,579,35402,248,704
30Jun 7, 2024 12:074,467102,551,62637,074,15302,244,608
31Jun 7, 2024 12:074,471113,408,19237,107,80002,236,416
32Jun 7, 2024 12:074,474101,413,96237,135,90802,244,608
33Jun 7, 2024 12:074,48394,382,72637,211,34702,236,416
34Jun 7, 2024 12:074,542102,172,16737,696,82302,240,512