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 listMay 7, 2024 14:38Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 14:3800000Error: expected "53684145973266430 ", got "53338320182947582"
2May 8, 2024 20:459,609136,761,61979,758,44902,273,280
3May 7, 2024 14:429,611150,721,69079,773,32302,273,280
4May 8, 2024 20:459,611140,478,88879,768,69202,277,376
5May 8, 2024 20:459,612136,135,99479,779,71402,281,472
6May 7, 2024 14:429,649143,390,70880,083,75202,277,376
7May 7, 2024 14:429,908138,805,94582,233,48802,281,472
8May 7, 2024 14:4110,043152,572,82583,358,69802,269,184
9May 7, 2024 14:4110,049150,184,83783,408,59202,281,472
10May 7, 2024 14:4110,055148,176,86283,458,16602,273,280
11May 8, 2024 19:4410,175153,394,61784,453,30603,448,832
12May 8, 2024 19:4410,190158,196,32684,580,07103,461,120
13May 8, 2024 19:4410,322153,739,14085,676,63603,452,928