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 listMar 3, 2024 14:39Ignas BagdonasIgnas BagdonasScore: 11,575Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2024 14:3911,185163,775,24992,835,61302,289,664
2Mar 3, 2024 14:3911,204154,675,79092,996,65302,285,568
3Mar 3, 2024 14:3911,262155,274,87393,477,46602,289,664
4Mar 3, 2024 14:3911,477119,404,17993,256,0002,005,0002,273,280
5Mar 3, 2024 14:3911,503121,235,48894,473,0001,005,0002,273,280
6Mar 3, 2024 14:3911,558119,588,62093,935,0001,998,0002,273,280
7Mar 3, 2024 14:3911,575121,510,70893,073,0003,002,0002,273,280
8Mar 3, 2024 14:3911,575119,715,92192,072,0004,003,0002,273,280
9Mar 3, 2024 14:3911,599117,464,29894,265,0002,005,0002,379,776
10Mar 3, 2024 14:3911,600121,996,21392,272,0004,011,0002,273,280
11Mar 3, 2024 14:3911,617120,479,47694,413,0002,008,0002,527,232
12Mar 3, 2024 14:3911,623118,812,01695,469,0001,004,0002,273,280
13Mar 3, 2024 14:3911,704120,786,94995,142,0002,002,0002,273,280
14Mar 3, 2024 14:3911,822121,824,51395,116,0003,003,0002,265,088
15Mar 3, 2024 14:3911,897126,974,69597,752,000997,0002,265,088