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 2, 2023 20:27dzaimadzaimaScore: 18,348Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2023 20:2718,326180,970,876151,108,0001,000,0002,265,088
2Jul 2, 2023 20:2718,329180,763,846151,129,0001,000,0002,523,136
3Jul 2, 2023 20:2718,331182,525,952149,146,0003,002,0002,379,776
4Jul 2, 2023 20:2718,332178,707,467150,153,0002,002,0002,523,136
5Jul 2, 2023 20:2718,336173,801,941151,191,0001,001,0002,523,136
6Jul 2, 2023 20:2718,340180,147,072151,224,0001,001,0002,523,136
7Jul 2, 2023 20:2718,348183,279,035151,286,0001,001,0002,379,776
8Jul 2, 2023 20:2718,349178,885,872151,294,0001,001,0002,387,968
9Jul 2, 2023 20:2718,353179,151,420152,334,00002,396,160
10Jul 2, 2023 20:2719,381226,278,574160,866,44402,240,512
11Jul 2, 2023 20:2719,385231,703,418160,898,50702,248,704
12Jul 2, 2023 20:2719,392215,905,363160,952,12302,236,416