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 21, 2021 23:25Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2021 23:0700000Error: expected "53685816583733340 ", got "53685816583477440 "
2Dec 21, 2021 23:3833,133333,454,255275,005,07402,211,840
3Dec 22, 2021 01:3733,172329,478,646275,331,74202,215,936
4Dec 21, 2021 23:3833,175359,072,167275,354,34502,211,840
5Dec 22, 2021 01:3733,176347,239,730275,361,25002,211,840
6Dec 21, 2021 23:3833,179349,881,526275,383,50502,211,840
7Dec 21, 2021 23:2533,186351,294,213275,447,00302,215,936
8Dec 21, 2021 23:2533,193339,238,283275,500,20502,215,936
9Dec 22, 2021 01:3733,205336,932,833275,601,91602,228,224
10Dec 21, 2021 23:2533,212350,558,042275,663,58702,207,744