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 listOct 15, 2024 14:14Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2024 14:1900000Error: expected "53680782505545947 ", got "53680782479945947 "stderr
2Oct 15, 2024 14:1431,752292,017,379262,539,0001,002,0002,289,664
3Oct 15, 2024 14:1231,787291,077,119260,834,0002,998,0002,285,568
4Oct 15, 2024 14:1231,834286,464,568262,220,0002,001,0002,269,184
5Oct 15, 2024 14:1431,838299,280,073263,255,0001,000,0002,285,568
6Oct 15, 2024 14:1231,845287,320,943263,309,0001,001,0002,367,488
7Oct 15, 2024 14:1231,848292,861,176264,340,00002,285,568
8Oct 15, 2024 14:1231,848288,562,772263,337,0001,001,0002,285,568
9Oct 15, 2024 14:1231,849287,588,393263,345,0001,001,0002,285,568
10Oct 15, 2024 14:1431,850289,061,087263,354,0001,001,0002,269,184
11Oct 15, 2024 14:1431,856286,266,030263,405,0001,001,0002,285,568
12Oct 15, 2024 14:1231,860292,358,738263,436,0001,001,0002,527,232
13Oct 15, 2024 14:1431,863296,424,887264,467,00002,285,568
14Oct 15, 2024 14:1431,867291,132,425263,498,0001,001,0002,519,040
15Oct 15, 2024 14:1431,867296,682,116263,491,0001,001,0002,519,040
16Oct 15, 2024 14:1431,868294,870,063263,501,0001,001,0002,285,568
17Oct 15, 2024 14:1231,870289,631,816263,516,0001,001,0002,277,376
18Oct 15, 2024 14:1431,872293,366,386263,532,0001,002,0002,285,568
19Oct 15, 2024 14:1231,896296,425,279262,741,0001,998,0002,285,568