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 listNov 5, 2023 23:15sliceteamsliceteamScore: 9,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2023 23:159,750104,662,53079,928,000999,0002,273,280
2Nov 5, 2023 23:159,793103,199,42979,273,0002,006,0002,273,280
3Nov 5, 2023 23:159,796104,509,23680,301,0001,003,0002,273,280
4Nov 5, 2023 23:159,820103,193,06380,496,0001,006,0002,273,280
5Nov 5, 2023 23:159,821111,545,61481,514,00002,273,280
6Nov 5, 2023 23:159,872107,060,94180,941,000999,0002,273,280
7Nov 5, 2023 23:159,908106,846,19981,234,0001,002,0002,273,280
8Nov 5, 2023 23:159,912105,692,83382,273,00002,273,280
9Nov 5, 2023 23:159,913105,351,48081,277,0001,003,0002,273,280
10Nov 5, 2023 23:159,918104,932,96682,321,00002,404,352
11Nov 5, 2023 23:159,930108,728,86781,414,0001,005,0002,273,280
12Nov 5, 2023 23:1510,066106,278,22683,549,00002,273,280
13Nov 5, 2023 23:1510,249143,949,54285,069,03802,285,568
14Nov 5, 2023 23:1510,285150,880,54085,363,93202,281,472
15Nov 5, 2023 23:1510,788145,295,49489,541,17402,277,376