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 listSep 12, 2024 11:51matsuoka-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
1Sep 12, 2024 11:5300000Error: expected "53681646983318945 ", got "53681644423062945 "
2Sep 12, 2024 11:5300000Error: expected "53682977600335014 ", got "53682975040335014 "
3Sep 12, 2024 11:5100000Error: expected "53680102301464194 ", got "53680099741464194 "
4Sep 12, 2024 11:556,03472,877,85048,079,0002,003,0002,527,232
5Sep 12, 2024 11:516,04373,594,55048,149,0002,006,0002,527,232
6Sep 12, 2024 11:556,04372,901,00448,149,0002,006,0002,265,088
7Sep 12, 2024 11:516,04473,120,98748,159,0002,006,0002,400,256
8Sep 12, 2024 11:516,05275,172,10148,225,0002,009,0002,404,352
9Sep 12, 2024 11:516,05878,838,16348,274,0002,011,0002,404,352
10Sep 12, 2024 11:516,06777,519,47949,346,0001,007,0002,404,352
11Sep 12, 2024 11:516,07376,615,68849,401,0001,008,0002,265,088
12Sep 12, 2024 11:516,08669,698,09449,501,0001,010,0002,265,088
13Sep 12, 2024 11:516,08773,053,00950,520,00002,265,088
14Sep 12, 2024 11:516,09081,641,55349,538,0001,010,0002,265,088
15Sep 12, 2024 11:536,10676,489,26449,665,0001,013,0002,265,088
16Sep 12, 2024 11:536,17477,212,66149,236,0002,009,0002,527,232
17Sep 12, 2024 11:536,19078,563,49250,373,0001,007,0002,265,088
18Sep 12, 2024 11:536,19279,651,66349,375,0002,015,0002,400,256
19Sep 12, 2024 11:536,19873,458,56850,435,0001,008,0002,265,088
20Sep 12, 2024 11:536,29678,596,18451,250,0001,004,0002,527,232
21Sep 12, 2024 11:556,32878,412,69251,511,0001,010,0002,392,064