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 02:24Joad NacerJoad NacerScore: 10,857Success
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 02:2410,822112,189,31088,827,000998,0002,265,088
2Apr 28, 2024 02:2410,827112,026,64187,865,0001,996,0002,260,992
3Apr 28, 2024 02:2410,834116,495,45188,925,000999,0002,285,568
4Apr 28, 2024 02:2410,852115,496,67288,071,0002,001,0002,285,568
5Apr 28, 2024 02:2410,853110,348,47288,075,0002,001,0002,285,568
6Apr 28, 2024 02:2410,857112,766,64288,110,0002,002,0002,285,568
7Apr 28, 2024 02:2410,857115,241,35689,116,0001,001,0002,285,568
8Apr 28, 2024 02:2410,857109,367,60388,110,0002,002,0002,285,568
9Apr 28, 2024 02:2410,861113,920,61688,140,0002,003,0002,265,088
10Apr 28, 2024 02:2410,863116,781,56688,162,0002,003,0002,285,568
11Apr 28, 2024 02:2410,886115,728,41389,348,0001,003,0002,285,568
12Apr 28, 2024 02:2410,889113,824,22589,373,0001,004,0002,519,040
13Apr 28, 2024 02:2411,217155,988,57193,104,54902,285,568
14Apr 28, 2024 02:2411,220154,650,57193,123,96402,277,376
15Apr 28, 2024 02:2411,235162,268,96393,247,55702,281,472