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:45dzaimadzaimaScore: 18,166Success
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:4518,146176,778,461149,611,0001,004,0002,269,184
2Jul 2, 2023 20:4518,161184,014,283150,736,00002,269,184
3Jul 2, 2023 20:4518,161176,096,149147,746,0002,994,0002,535,424
4Jul 2, 2023 20:4518,161182,876,188148,744,0001,996,0002,273,280
5Jul 2, 2023 20:4518,164180,181,466147,768,0002,995,0002,273,280
6Jul 2, 2023 20:4518,165174,947,031148,774,0001,996,0002,273,280
7Jul 2, 2023 20:4518,166175,696,276148,778,0001,997,0002,269,184
8Jul 2, 2023 20:4518,174177,842,153147,845,0002,996,0002,273,280
9Jul 2, 2023 20:4518,175170,859,540148,853,0001,998,0002,371,584
10Jul 2, 2023 20:4519,246236,512,051159,742,21302,269,184
11Jul 2, 2023 20:4519,259237,656,335159,853,47702,265,088
12Jul 2, 2023 20:4519,262231,987,379159,876,64802,265,088