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 07:31GraceGraceScore: 5,981Success
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 07:315,96377,057,11948,484,0001,010,0002,396,160
2Jun 4, 2024 07:315,96472,990,70049,504,00002,400,256
3Jun 4, 2024 07:315,96771,794,59448,513,0001,010,0002,273,280
4Jun 4, 2024 07:315,96876,773,61848,522,0001,010,0002,273,280
5Jun 4, 2024 07:315,96873,747,14648,523,0001,010,0002,273,280
6Jun 4, 2024 07:315,97180,862,42348,550,0001,011,0002,273,280
7Jun 4, 2024 07:315,97277,818,05149,568,00002,396,160
8Jun 4, 2024 07:315,97280,585,78848,558,0001,011,0002,273,280
9Jun 4, 2024 07:315,97274,969,92849,564,00002,400,256
10Jun 4, 2024 07:315,97378,089,72448,569,0001,011,0002,396,160
11Jun 4, 2024 07:315,97478,574,40149,586,00002,396,160
12Jun 4, 2024 07:315,97776,317,98249,607,00002,273,280
13Jun 4, 2024 07:315,97781,652,06748,601,0001,012,0002,396,160
14Jun 4, 2024 07:315,97977,608,01348,616,0001,012,0002,273,280
15Jun 4, 2024 07:315,97974,513,49148,612,0001,012,0002,404,352
16Jun 4, 2024 07:315,98176,343,76849,643,00002,273,280
17Jun 4, 2024 07:315,98278,410,60048,639,0001,013,0002,273,280
18Jun 4, 2024 07:315,98272,109,61649,653,00002,506,752
19Jun 4, 2024 07:315,98476,532,13249,666,00002,273,280
20Jun 4, 2024 07:315,99876,395,89347,791,0001,991,0002,273,280
21Jun 4, 2024 07:315,99977,429,46149,793,00002,273,280
22Jun 4, 2024 07:316,02479,775,88948,999,000999,0002,273,280
23Jun 4, 2024 07:316,12778,780,68549,841,0001,017,0002,273,280
24Jun 4, 2024 07:316,16774,696,60050,182,0001,003,0002,273,280
25Jun 4, 2024 07:316,321122,258,11052,468,01802,281,472
26Jun 4, 2024 07:316,322119,153,71152,472,32802,277,376
27Jun 4, 2024 07:316,326112,121,07252,504,40902,289,664
28Jun 4, 2024 07:316,326109,357,25552,509,45402,281,472
29Jun 4, 2024 07:316,337104,829,28352,599,06002,285,568
30Jun 4, 2024 07:316,338122,027,74652,608,73202,277,376