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 listAug 23, 2023 05:41matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2023 05:4000000Error: expected "53688790239410345 ", got "53688764639410345 "
2Aug 23, 2023 05:418,70595,807,08670,242,0002,006,0002,285,568
3Aug 23, 2023 05:418,864100,490,45173,573,00002,285,568
4Aug 23, 2023 05:419,337101,612,97576,488,0001,006,0002,285,568
5Aug 23, 2023 05:419,396103,108,59975,987,0001,999,0002,285,568
6Aug 23, 2023 05:419,468107,355,81377,579,0001,007,0002,285,568
7Aug 23, 2023 05:419,548102,151,66677,243,0002,006,0002,285,568
8Aug 23, 2023 05:419,575102,313,37878,467,0001,005,0002,285,568
9Aug 23, 2023 05:419,648109,339,57878,075,0002,001,0002,519,040
10Aug 23, 2023 05:419,660101,094,77678,176,0002,004,0002,285,568
11Aug 23, 2023 05:419,707145,764,32080,564,51702,269,184
12Aug 23, 2023 05:419,717107,918,58279,647,0001,008,0002,519,040
13Aug 23, 2023 05:419,728108,083,82479,748,000996,0002,519,040
14Aug 23, 2023 05:419,859148,975,94681,831,35902,265,088
15Aug 23, 2023 05:419,860109,880,65179,840,0001,996,0002,514,944
16Aug 23, 2023 05:419,869147,138,64281,912,75402,281,472