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:22GraceGraceError
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:2200000Error: expected "53689630243244897 ", got "53689630236691297 "
2Jun 7, 2024 12:224,12564,027,92131,214,0003,020,0002,420,736
3Jun 7, 2024 12:224,13458,571,31633,301,0001,009,000176,128
4Jun 7, 2024 12:224,13956,471,95232,332,0002,020,000376,832
5Jun 7, 2024 12:224,14760,373,16432,399,0002,024,0002,342,912
6Jun 7, 2024 12:224,14967,128,57833,423,0001,012,0002,482,176
7Jun 7, 2024 12:224,14957,796,03832,412,0002,025,0002,273,280
8Jun 7, 2024 12:224,15857,227,76033,498,0001,015,0002,478,080
9Jun 7, 2024 12:224,16356,301,82232,521,0002,032,0002,482,176
10Jun 7, 2024 12:224,19660,063,31333,835,000995,0002,273,280
11Jun 7, 2024 12:224,22160,201,60932,033,0003,003,0002,478,080
12Jun 7, 2024 12:224,23955,608,04433,174,0002,010,0002,379,776
13Jun 7, 2024 12:224,29695,097,33635,658,63602,232,320
14Jun 7, 2024 12:224,311116,640,98135,784,29102,240,512
15Jun 7, 2024 12:224,32958,861,80630,941,0004,990,000327,680
16Jun 7, 2024 12:224,347115,560,89036,077,58102,236,416
17Jun 7, 2024 12:224,352113,494,16536,121,87102,236,416
18Jun 7, 2024 12:224,353118,113,77036,129,07202,240,512
19Jun 7, 2024 12:224,355102,299,06336,147,71602,236,416
20Jun 7, 2024 12:224,367113,158,95636,246,58602,240,512
21Jun 7, 2024 12:224,370109,261,15136,267,89602,244,608
22Jun 7, 2024 12:224,372114,627,42636,287,25802,248,704