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:38GraceGraceScore: 5,245Success
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:385,19865,449,92241,135,0002,006,0002,400,256
2Jun 4, 2024 05:385,19968,552,76542,150,0001,003,0002,396,160
3Jun 4, 2024 05:385,20069,979,61842,156,0001,003,0002,400,256
4Jun 4, 2024 05:385,20169,614,91542,165,0001,003,0002,273,280
5Jun 4, 2024 05:385,20465,700,22341,187,0002,009,0002,392,064
6Jun 4, 2024 05:385,21265,581,76642,255,0001,006,0002,396,160
7Jun 4, 2024 05:385,21367,679,39341,259,0002,012,0002,273,280
8Jun 4, 2024 05:385,21465,482,34642,270,0001,006,0002,273,280
9Jun 4, 2024 05:385,21567,862,13241,268,0002,013,0002,273,280
10Jun 4, 2024 05:385,21767,124,26542,295,0001,007,0002,514,944
11Jun 4, 2024 05:385,21966,536,55542,313,0001,007,0002,392,064
12Jun 4, 2024 05:385,21967,605,51241,305,0002,014,0002,400,256
13Jun 4, 2024 05:385,22172,421,26643,333,00002,273,280
14Jun 4, 2024 05:385,22670,304,42143,372,00002,400,256
15Jun 4, 2024 05:385,22970,242,86642,395,0001,009,0002,273,280
16Jun 4, 2024 05:385,22964,780,54042,390,0001,009,0002,273,280
17Jun 4, 2024 05:385,23470,040,48142,429,0001,010,0002,392,064
18Jun 4, 2024 05:385,23567,534,07143,454,00002,273,280
19Jun 4, 2024 05:385,23567,779,22941,479,0001,975,0002,273,280
20Jun 4, 2024 05:385,23864,305,15842,464,0001,011,0002,396,160
21Jun 4, 2024 05:385,23971,095,54342,472,0001,011,0002,404,352
22Jun 4, 2024 05:385,23967,153,69842,476,0001,011,0002,273,280
23Jun 4, 2024 05:385,24071,642,52743,489,00002,273,280
24Jun 4, 2024 05:385,24472,180,32443,528,00002,273,280
25Jun 4, 2024 05:385,24567,991,17742,523,0001,012,0002,396,160
26Jun 4, 2024 05:385,24665,291,77342,528,0001,012,0002,400,256
27Jun 4, 2024 05:385,26376,371,74242,664,0001,015,0002,519,040
28Jun 4, 2024 05:385,411126,693,38244,913,97602,281,472
29Jun 4, 2024 05:385,437108,595,97345,126,90202,281,472
30Jun 4, 2024 05:385,438105,188,16445,139,13302,273,280
31Jun 4, 2024 05:385,459113,421,66545,311,73802,285,568
32Jun 4, 2024 05:385,485115,692,64745,525,14902,289,664
33Jun 4, 2024 05:385,494115,852,84345,598,04002,289,664
34Jun 4, 2024 05:385,510107,171,16745,730,22802,289,664
35Jun 4, 2024 05:385,511101,512,06145,742,89202,281,472
36Jun 4, 2024 05:385,512110,700,21245,751,92702,293,760
37Jun 4, 2024 05:385,525108,143,40745,856,19502,281,472
38Jun 4, 2024 05:385,530115,739,06445,902,91502,289,664
39Jun 4, 2024 05:385,569133,648,01146,225,61502,285,568
40Jun 4, 2024 05:386,24876,470,55049,861,0001,994,0002,273,280
41Jun 4, 2024 05:386,26171,489,97250,965,000999,0002,273,280
42Jun 4, 2024 05:386,27074,094,36450,040,0002,001,0002,400,256
43Jun 4, 2024 05:386,28574,982,62150,160,0002,006,0002,400,256
44Jun 4, 2024 05:386,30173,308,18752,298,00002,273,280
45Jun 4, 2024 05:386,36879,172,30550,861,0001,994,0002,273,280
46Jun 4, 2024 05:386,38475,005,79951,987,000999,0002,383,872
47Jun 4, 2024 05:386,39678,515,66751,080,0002,003,0002,400,256
48Jun 4, 2024 05:386,40774,662,53952,174,0001,003,0002,269,184