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 listJun 3, 2024 04:50GraceGraceScore: 6,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 04:506,00876,811,03647,872,0001,994,0002,396,160
2Jun 3, 2024 04:506,01873,786,03347,951,0001,997,0002,273,280
3Jun 3, 2024 04:506,01874,155,98148,952,000999,0002,400,256
4Jun 3, 2024 04:506,01981,730,04447,963,0001,998,0002,273,280
5Jun 3, 2024 04:506,02173,710,97247,973,0001,998,0002,408,448
6Jun 3, 2024 04:506,02273,208,84548,982,000999,0002,400,256
7Jun 3, 2024 04:506,02271,868,08848,984,000999,0002,273,280
8Jun 3, 2024 04:506,02273,013,35247,981,0001,999,0002,277,376
9Jun 3, 2024 04:506,02476,147,17948,000,0002,000,0002,273,280
10Jun 3, 2024 04:506,02572,754,24648,008,0002,000,0002,273,280
11Jun 3, 2024 04:506,12680,699,19648,852,0001,993,0002,273,280
12Jun 3, 2024 04:506,13774,097,67049,942,000998,0002,404,352
13Jun 3, 2024 04:506,219118,623,02651,617,90202,289,664
14Jun 3, 2024 04:506,222120,474,61051,641,48602,285,568
15Jun 3, 2024 04:506,226128,565,82751,674,76902,281,472