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 listJan 11, 2025 18:48Ian MckibbenIan MckibbenScore: 43,113Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2025 18:4543,006385,114,129354,950,0001,999,0002,289,664
2Jan 11, 2025 18:4543,031379,757,986357,155,00002,281,472
3Jan 11, 2025 18:4543,050377,367,139356,315,0001,000,0002,510,848
4Jan 11, 2025 18:4543,065392,790,138356,439,0001,001,0002,510,848
5Jan 11, 2025 18:4543,068383,405,392356,463,0001,001,0002,289,664
6Jan 11, 2025 18:4543,070388,432,614356,484,0001,001,0002,289,664
7Jan 11, 2025 18:4543,086384,136,579355,617,0001,997,0002,289,664
8Jan 11, 2025 18:4543,113382,270,428355,837,0001,999,0002,334,720
9Jan 11, 2025 18:4843,154379,813,314358,180,00002,289,664
10Jan 11, 2025 18:4843,159384,344,170357,220,0001,000,0002,289,664
11Jan 11, 2025 18:4843,166381,061,670357,278,0001,000,0002,510,848
12Jan 11, 2025 18:4543,287386,881,688359,279,00002,289,664
13Jan 11, 2025 18:4843,416386,557,685360,349,00002,289,664
14Jan 11, 2025 18:4843,426394,269,731359,435,0001,001,0002,519,040
15Jan 11, 2025 18:4843,457382,662,041358,698,0001,998,0002,510,848