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 4, 2024 06:15GraceGraceScore: 5,192Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 06:155,12368,528,22041,508,0001,012,0002,273,280
2Jun 4, 2024 06:155,12774,152,74041,545,0001,013,0002,273,280
3Jun 4, 2024 06:155,12975,376,22641,560,0001,013,0002,273,280
4Jun 4, 2024 06:155,13071,971,13840,601,0001,980,0002,273,280
5Jun 4, 2024 06:155,13269,369,51341,582,0001,014,0002,273,280
6Jun 4, 2024 06:155,14069,687,39042,659,00002,408,448
7Jun 4, 2024 06:155,14473,558,90042,697,00002,400,256
8Jun 4, 2024 06:155,19269,735,16741,090,0002,004,0002,273,280
9Jun 4, 2024 06:155,24466,132,48342,514,0001,012,0002,273,280
10Jun 4, 2024 06:155,330119,081,03444,242,38202,281,472
11Jun 4, 2024 06:155,344107,436,47144,355,83002,277,376
12Jun 4, 2024 06:155,352116,853,56844,422,62002,285,568
13Jun 4, 2024 06:156,46583,460,41453,656,00002,392,064
14Jun 4, 2024 06:156,46779,723,77052,668,0001,012,0002,396,160
15Jun 4, 2024 06:156,48579,819,07353,823,00002,273,280