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 listJul 20, 2024 21:58Andrey LikhachevAndrey LikhachevScore: 12,008Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2024 21:5811,690124,745,27196,027,0001,000,0002,371,584
2Jul 20, 2024 21:5811,704123,926,80195,138,0002,002,0002,367,488
3Jul 20, 2024 21:5811,709116,316,57096,181,0001,001,0002,379,776
4Jul 20, 2024 21:5811,970120,593,84199,347,00002,367,488
5Jul 20, 2024 21:5811,977123,741,89198,408,0001,004,0002,285,568
6Jul 20, 2024 21:5812,001126,324,18499,609,00002,285,568
7Jul 20, 2024 21:5812,003135,433,01198,622,0001,006,0002,375,680
8Jul 20, 2024 21:5812,008124,965,39398,661,0001,006,0002,285,568
9Jul 20, 2024 21:5812,025128,410,86997,809,0001,996,0002,375,680
10Jul 20, 2024 21:5812,025125,103,19097,812,0001,996,0002,367,488
11Jul 20, 2024 21:5812,025129,169,06897,814,0001,996,0002,285,568
12Jul 20, 2024 21:5812,027131,330,09298,826,000998,0002,367,488
13Jul 20, 2024 21:5812,157170,997,218100,900,20402,228,224
14Jul 20, 2024 21:5812,490163,339,666103,665,43402,256,896
15Jul 20, 2024 21:5812,504175,585,156103,781,69402,224,128