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 21:59dzaimadzaimaScore: 16,282Success
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 21:5916,241159,116,962132,803,0001,997,0002,277,376
2Jul 2, 2023 21:5916,261158,677,795133,966,000999,0002,269,184
3Jul 2, 2023 21:5916,264160,494,906132,994,0001,999,0002,289,664
4Jul 2, 2023 21:5916,265158,071,936132,998,0001,999,0002,289,664
5Jul 2, 2023 21:5916,275160,739,796133,083,0002,001,0002,289,664
6Jul 2, 2023 21:5916,275156,976,238134,085,0001,000,0002,269,184
7Jul 2, 2023 21:5916,282159,559,650133,136,0002,002,0002,265,088
8Jul 2, 2023 21:5916,294158,490,354133,236,0002,003,0002,289,664
9Jul 2, 2023 21:5916,298161,336,719134,269,0001,002,0002,289,664
10Jul 2, 2023 21:5916,703206,291,301138,635,69802,277,376
11Jul 2, 2023 21:5916,707212,616,759138,665,74102,277,376
12Jul 2, 2023 21:5916,708202,869,462138,673,49002,273,280