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 18, 2024 12:35Andrey LikhachevAndrey LikhachevScore: 14,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2024 12:3514,301192,981,156118,699,55802,232,320
2Jul 18, 2024 12:3514,311148,149,976116,783,0001,996,0002,375,680
3Jul 18, 2024 12:3514,315147,375,076116,819,0001,996,0002,371,584
4Jul 18, 2024 12:3514,320147,094,618117,857,000998,0002,363,392
5Jul 18, 2024 12:3514,323182,073,253118,881,07302,228,224
6Jul 18, 2024 12:3514,333144,598,941117,965,000999,0002,371,584
7Jul 18, 2024 12:3514,334145,180,007117,974,000999,0002,289,664
8Jul 18, 2024 12:3514,338198,814,999119,005,80402,215,936
9Jul 18, 2024 12:3514,347145,160,208118,083,0001,000,0002,359,296
10Jul 18, 2024 12:3514,349142,550,036117,092,0002,001,0002,367,488
11Jul 18, 2024 12:3514,349143,034,049117,095,0002,001,0002,285,568
12Jul 18, 2024 12:3514,358144,300,205118,171,0001,001,0002,285,568