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:55GraceGraceScore: 5,232Success
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:555,21569,082,39941,272,0002,013,0002,273,280
2Jun 3, 2024 04:555,21569,667,40843,288,00002,392,064
3Jun 3, 2024 04:555,22165,230,33042,327,0001,007,0002,404,352
4Jun 3, 2024 04:555,22271,525,26743,340,00002,273,280
5Jun 3, 2024 04:555,22265,510,65243,346,00002,273,280
6Jun 3, 2024 04:555,22763,484,51642,377,0001,008,0002,273,280
7Jun 3, 2024 04:555,22865,328,23942,387,0001,009,0002,273,280
8Jun 3, 2024 04:555,22963,274,04242,388,0001,009,0002,273,280
9Jun 3, 2024 04:555,23067,389,90143,406,00002,396,160
10Jun 3, 2024 04:555,23273,067,93642,419,0001,009,0002,273,280
11Jun 3, 2024 04:555,23271,506,33143,422,00002,273,280
12Jun 3, 2024 04:555,23577,389,26542,442,0001,010,0002,273,280
13Jun 3, 2024 04:555,433108,809,71845,096,96802,281,472
14Jun 3, 2024 04:555,435121,955,10445,112,34102,277,376
15Jun 3, 2024 04:555,440105,245,42445,150,98402,281,472
16Jun 3, 2024 04:555,443114,610,53145,174,11302,277,376
17Jun 3, 2024 04:555,44999,373,42445,230,39602,293,760
18Jun 3, 2024 04:555,451103,539,93345,241,42002,285,568