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 listDec 27, 2024 21:46Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 21:4600000Error: expected "53680348853508357 ", got "53680359948277170 "stderr
2Dec 27, 2024 21:4500000Error: No answer to stdout. Died or killed?stderr
3Dec 27, 2024 21:464,29562,762,80535,645,00002,535,424
4Dec 27, 2024 21:434,31559,037,36433,827,0001,989,0002,297,856
5Dec 27, 2024 21:464,31869,056,67133,847,0001,991,0002,301,952
6Dec 27, 2024 21:464,32065,670,85734,857,000995,0002,306,048
7Dec 27, 2024 21:464,32066,410,14333,868,0001,992,0002,273,280
8Dec 27, 2024 21:464,32261,557,68434,880,000996,0002,301,952
9Dec 27, 2024 21:434,32557,986,84133,901,0001,994,0002,535,424
10Dec 27, 2024 21:464,32557,411,08334,899,000997,0002,301,952
11Dec 27, 2024 21:454,32559,065,09834,904,000997,0002,297,856
12Dec 27, 2024 21:464,33058,760,75333,945,0001,996,0002,273,280
13Dec 27, 2024 21:464,33358,161,59734,964,000998,0002,535,424
14Dec 27, 2024 21:454,33659,402,62034,987,000999,0002,535,424
15Dec 27, 2024 21:434,36563,336,20035,220,0001,006,0002,301,952
16Dec 27, 2024 21:454,37459,915,79335,294,0001,008,0002,301,952
17Dec 27, 2024 21:464,39062,344,50334,414,0002,024,0002,306,048
18Dec 27, 2024 21:434,39656,449,72536,483,00002,531,328
19Dec 27, 2024 21:454,40355,755,09936,543,00002,531,328
20Dec 27, 2024 21:454,41561,258,26536,645,00002,531,328
21Dec 27, 2024 21:464,41667,579,18934,620,0002,036,0002,306,048
22Dec 27, 2024 21:464,43767,456,76936,826,00002,269,184
23Dec 27, 2024 21:434,43859,646,80334,843,0001,991,0002,301,952
24Dec 27, 2024 21:464,44070,489,26933,863,0002,987,0002,301,952
25Dec 27, 2024 21:464,44164,646,71935,866,000996,0002,478,080
26Dec 27, 2024 21:454,44659,993,77935,908,000997,0002,293,760
27Dec 27, 2024 21:464,47660,685,75335,143,0002,008,0002,531,328
28Dec 27, 2024 21:464,65164,922,78437,585,0001,015,0002,531,328
29Dec 27, 2024 21:434,82863,985,44539,074,0001,001,0002,297,856