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 listApr 28, 2024 12:39Steve HanSteve HanScore: 19,634Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 12:3918,802220,658,307156,055,58302,301,952
2Apr 28, 2024 12:4018,836224,873,852156,342,70802,297,856
3Apr 28, 2024 12:3918,863229,073,070156,559,99102,174,976
4Apr 28, 2024 13:1118,884240,757,683156,735,69102,301,952
5Apr 28, 2024 13:1118,916225,805,959157,006,27302,293,760
6Apr 28, 2024 12:3918,919217,808,353157,031,45802,301,952
7Apr 28, 2024 12:3918,927214,639,564157,092,37902,301,952
8Apr 28, 2024 12:4018,928217,806,632157,100,38402,306,048
9Apr 28, 2024 12:3919,007223,175,833157,759,39802,301,952
10Apr 28, 2024 12:3919,634223,082,881162,960,15702,293,760
11Apr 28, 2024 12:3919,690228,767,170163,426,30102,301,952
12Apr 28, 2024 13:1119,714225,849,266163,628,16102,301,952
13Apr 28, 2024 12:3919,861225,324,594164,844,69802,301,952
14Apr 28, 2024 12:4019,903220,993,134165,195,56702,301,952
15Apr 28, 2024 13:1019,932226,316,080165,435,73102,297,856
16Apr 28, 2024 13:1019,948225,166,466165,569,26602,301,952
17Apr 28, 2024 12:3919,956223,057,502165,635,84502,293,760
18Apr 28, 2024 13:1019,984230,007,228165,866,20902,293,760