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 22, 2024 14:48Andrey LikhachevAndrey LikhachevScore: 11,965Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2024 14:4811,649125,153,57095,688,000996,0002,285,568
2Jul 22, 2024 14:4811,657122,476,53496,756,00002,289,664
3Jul 22, 2024 14:4811,658124,462,22995,761,000997,0002,285,568
4Jul 22, 2024 14:4811,659125,420,00194,775,0001,995,0002,359,296
5Jul 22, 2024 14:4811,659123,814,70895,771,000997,0002,478,080
6Jul 22, 2024 14:4811,659121,123,33996,773,00002,367,488
7Jul 22, 2024 14:4811,659128,810,23595,773,000997,0002,367,488
8Jul 22, 2024 14:4811,660125,954,49595,779,000997,0002,285,568
9Jul 22, 2024 14:4811,680124,690,57794,950,0001,998,0002,359,296
10Jul 22, 2024 14:4811,964120,290,02499,301,00002,371,584
11Jul 22, 2024 14:4811,965124,821,01699,313,00002,367,488
12Jul 22, 2024 14:4811,971120,358,34798,354,0001,003,0002,285,568
13Jul 22, 2024 14:4811,979128,570,45499,423,00002,367,488
14Jul 22, 2024 14:4811,987124,825,74098,488,0001,004,0002,375,680
15Jul 22, 2024 14:4811,987121,691,85199,496,00002,367,488
16Jul 22, 2024 14:4812,003128,235,52198,623,0001,006,0002,375,680
17Jul 22, 2024 14:4812,005124,985,11898,632,0001,006,0002,367,488
18Jul 22, 2024 14:4812,124170,261,354100,631,96402,232,320
19Jul 22, 2024 14:4812,147169,850,591100,821,79902,220,032
20Jul 22, 2024 14:4812,150174,127,569100,847,33302,236,416
21Jul 22, 2024 14:4812,284127,571,190100,960,000999,0002,363,392