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:16Andrey LikhachevAndrey LikhachevScore: 11,995Success
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:1611,696117,555,51395,079,0002,001,0002,285,568
2Jul 18, 2024 12:1611,710123,918,94596,188,0001,001,0002,285,568
3Jul 18, 2024 12:1611,710117,459,20695,193,0002,004,0002,285,568
4Jul 18, 2024 12:1611,978122,510,14999,419,00002,375,680
5Jul 18, 2024 12:1611,980123,727,89999,430,00002,285,568
6Jul 18, 2024 12:1611,984124,175,00399,467,00002,363,392
7Jul 18, 2024 12:1611,985119,491,50999,479,00002,371,584
8Jul 18, 2024 12:1611,995128,080,81998,554,0001,005,0002,285,568
9Jul 18, 2024 12:1611,998123,271,17199,587,00002,375,680
10Jul 18, 2024 12:1611,999127,068,17098,587,0001,005,0002,281,472
11Jul 18, 2024 12:1612,003127,058,63798,617,0001,006,0002,371,584
12Jul 18, 2024 12:1612,025128,083,90797,811,0001,996,0002,359,296
13Jul 18, 2024 12:1612,088175,171,039100,334,25802,232,320
14Jul 18, 2024 12:1612,138158,233,344100,748,07202,228,224
15Jul 18, 2024 12:1612,375178,610,737102,713,45002,224,128