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 3, 2023 14:11dzaimadzaimaScore: 13,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 14:1113,215168,089,935109,686,86602,265,088
2Jul 3, 2023 14:1113,220179,159,289109,728,82802,260,992
3Jul 3, 2023 14:1113,224163,581,126109,755,64802,260,992
4Jul 3, 2023 14:1113,348136,419,052108,794,0001,996,0002,289,664
5Jul 3, 2023 14:1113,348142,113,745110,790,00002,269,184
6Jul 3, 2023 14:1113,350131,807,379108,807,0001,996,0002,273,280
7Jul 3, 2023 14:1113,353138,291,940108,833,0001,996,0002,289,664
8Jul 3, 2023 14:1113,358135,198,602108,875,0001,997,0002,371,584
9Jul 3, 2023 14:1113,359138,341,903109,881,000998,0002,289,664
10Jul 3, 2023 14:1113,361135,145,116108,901,0001,998,0002,273,280
11Jul 3, 2023 14:1113,362136,880,907108,908,0001,998,0002,523,136
12Jul 3, 2023 14:1113,362133,966,176108,909,0001,998,0002,289,664