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 23:39dzaimadzaimaScore: 13,071Success
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 23:3912,999133,098,150105,897,0001,998,0002,289,664
2Jul 2, 2023 23:3912,999134,931,513105,894,0001,998,0002,289,664
3Jul 2, 2023 23:3913,011132,124,103105,992,0001,999,0002,273,280
4Jul 2, 2023 23:3913,028134,468,922106,127,0002,002,0002,289,664
5Jul 2, 2023 23:3913,057137,681,620107,366,0001,003,0002,289,664
6Jul 2, 2023 23:3913,069137,736,788107,466,0001,004,0002,273,280
7Jul 2, 2023 23:3913,071135,180,570107,483,0001,004,0002,535,424
8Jul 2, 2023 23:3913,100139,417,263106,735,0001,995,0002,289,664
9Jul 2, 2023 23:3913,521136,431,148112,228,00002,269,184
10Jul 2, 2023 23:3915,816210,145,248131,269,22402,277,376
11Jul 2, 2023 23:3915,816202,985,363131,275,30402,265,088
12Jul 2, 2023 23:3915,823206,895,922131,333,16602,273,280