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 listMay 31, 2024 13:16GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 13:1600000Error: expected "53686791424004530 ", got "53686952546046806 "
2May 31, 2024 13:1600000Error: No answer to stdout. Died or killed?
3May 31, 2024 13:165,38474,822,95943,675,0001,015,0002,273,280
4May 31, 2024 13:165,40266,935,78942,847,0001,992,0002,396,160
5May 31, 2024 13:175,40274,762,09043,838,000996,0002,273,280
6May 31, 2024 13:175,40269,012,77543,844,000996,0002,273,280
7May 31, 2024 13:165,40273,298,09343,839,000996,0002,400,256
8May 31, 2024 13:165,40369,355,47242,851,0001,993,0002,387,968
9May 31, 2024 13:175,40469,840,22743,861,000996,0002,273,280
10May 31, 2024 13:175,40865,426,81942,892,0001,994,0002,392,064
11May 31, 2024 13:165,41466,586,65043,941,000998,0002,273,280
12May 31, 2024 13:165,41566,988,66643,943,000998,0002,400,256
13May 31, 2024 13:165,41574,632,18242,944,0001,997,0002,408,448
14May 31, 2024 13:165,41568,834,87543,948,000998,0002,265,088
15May 31, 2024 13:165,41569,084,44342,950,0001,997,0002,273,280
16May 31, 2024 13:175,41567,520,67543,943,000998,0002,400,256
17May 31, 2024 13:165,41672,506,06643,955,000998,0002,387,968
18May 31, 2024 13:165,41866,165,34642,971,0001,998,0002,273,280
19May 31, 2024 13:165,41870,207,16542,971,0001,998,0002,273,280
20May 31, 2024 13:175,42069,050,91943,983,000999,0002,273,280
21May 31, 2024 13:165,42070,724,70643,987,000999,0002,273,280
22May 31, 2024 13:165,42069,611,26142,985,0001,999,0002,400,256
23May 31, 2024 13:175,42170,423,99242,993,0001,999,0002,273,280
24May 31, 2024 13:165,42267,738,41943,006,0002,000,0002,392,064
25May 31, 2024 13:165,42471,075,12544,023,0001,000,0002,404,352
26May 31, 2024 13:175,42868,944,47945,054,00002,396,160
27May 31, 2024 13:165,42965,132,20543,057,0002,002,0002,473,984
28May 31, 2024 13:165,43066,350,69043,066,0002,003,0002,273,280
29May 31, 2024 13:165,43167,526,81944,078,0001,001,0002,273,280
30May 31, 2024 13:165,43371,525,52543,093,0002,004,0002,400,256
31May 31, 2024 13:175,43968,724,85243,139,0002,006,0002,392,064
32May 31, 2024 13:175,45868,398,83743,286,0002,013,0002,404,352
33May 31, 2024 13:175,48870,003,96745,549,00002,273,280
34May 31, 2024 13:175,53169,270,87943,909,0001,995,0002,400,256
35May 31, 2024 13:165,54767,858,78145,038,0001,000,0002,404,352
36May 31, 2024 13:165,56367,400,80344,164,0002,007,0002,273,280
37May 31, 2024 13:165,57373,116,97545,255,0001,005,0002,273,280
38May 31, 2024 13:165,599108,164,00646,472,46402,285,568
39May 31, 2024 13:175,599112,918,48946,471,14602,281,472
40May 31, 2024 13:175,601116,296,17746,488,08402,285,568
41May 31, 2024 13:175,605108,316,83646,520,16302,285,568
42May 31, 2024 13:175,606111,261,72946,526,93002,285,568
43May 31, 2024 13:165,611109,122,21646,568,39602,289,664
44May 31, 2024 13:165,616131,746,31646,614,04602,277,376
45May 31, 2024 13:175,621117,219,56146,651,82502,281,472
46May 31, 2024 13:165,628122,948,65146,709,57702,293,760
47May 31, 2024 13:165,662135,845,72146,996,92802,285,568
48May 31, 2024 13:165,70873,103,46746,367,0001,007,0002,273,280
49May 31, 2024 13:175,776119,754,38447,940,33602,289,664
50May 31, 2024 13:165,927112,573,54849,196,27402,281,472