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 05:51GraceGraceScore: 5,074Success
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 05:505,04467,317,85939,874,0001,993,0002,396,160
2Jun 4, 2024 05:515,04967,091,14940,913,000997,0002,273,280
3Jun 4, 2024 05:505,05167,345,65439,927,0001,996,0002,273,280
4Jun 4, 2024 05:505,05764,083,80340,976,000999,0002,404,352
5Jun 4, 2024 05:505,05764,725,84339,971,0001,998,0002,273,280
6Jun 4, 2024 05:515,06069,594,32140,002,0002,000,0002,273,280
7Jun 4, 2024 05:515,06163,558,13540,005,0002,000,0002,273,280
8Jun 4, 2024 05:515,06264,984,42341,017,0001,000,0002,510,848
9Jun 4, 2024 05:505,06467,634,74940,034,0002,001,0002,273,280
10Jun 4, 2024 05:505,06465,852,84340,031,0002,001,0002,273,280
11Jun 4, 2024 05:505,06663,997,03440,047,0002,002,0002,510,848
12Jun 4, 2024 05:515,06868,790,08841,063,0001,001,0002,408,448
13Jun 4, 2024 05:515,06964,501,76440,067,0002,003,0002,273,280
14Jun 4, 2024 05:515,07468,195,11140,108,0002,005,0002,273,280
15Jun 4, 2024 05:515,07464,587,29040,106,0002,005,0002,404,352
16Jun 4, 2024 05:515,07469,105,63840,108,0002,005,0002,400,256
17Jun 4, 2024 05:505,07770,705,57440,135,0002,006,0002,404,352
18Jun 4, 2024 05:505,08765,271,14740,209,0002,010,0002,404,352
19Jun 4, 2024 05:505,250119,976,32443,577,97502,281,472
20Jun 4, 2024 05:515,260101,414,00343,659,84502,252,800
21Jun 4, 2024 05:505,264112,856,28743,691,68802,285,568
22Jun 4, 2024 05:515,264122,640,16343,690,15102,281,472
23Jun 4, 2024 05:505,271118,004,05243,746,90502,281,472
24Jun 4, 2024 05:515,285103,777,95643,864,53002,285,568
25Jun 4, 2024 05:515,97580,833,30848,583,0001,012,0002,273,280
26Jun 4, 2024 05:516,01871,863,64047,951,0001,997,0002,404,352
27Jun 4, 2024 05:516,03376,922,22749,076,0001,001,0002,396,160