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 listApr 13, 2024 08:54Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 08:5400000Error: expected "53689815669969120 ", got "53689815669713120 "
2Apr 13, 2024 08:2600000Error: expected "53687598687435313 ", got "53687598687179313 "
3Apr 13, 2024 08:3500000Error: expected "53686326369518139 ", got "53686300769518139 "
4Apr 13, 2024 08:5300000Error: expected "53688818707351173 ", got "53688816147351173 "
5Apr 13, 2024 08:5800000Error: expected "53686891348560501 ", got "53686891348560245 "
6Apr 13, 2024 09:0000000Error: expected "53688252405927141 ", got "53688252380327141 "
7Apr 13, 2024 08:3915,617200,827,457129,623,10302,285,568
8Apr 13, 2024 06:3615,634183,160,796129,761,54402,297,856
9Apr 13, 2024 08:5415,635193,499,340129,773,65002,293,760
10Apr 13, 2024 08:5415,636183,989,319129,777,41902,289,664
11Apr 13, 2024 08:5515,636188,961,771129,778,05402,285,568
12Apr 13, 2024 08:5815,636190,419,690129,780,35102,297,856
13Apr 13, 2024 08:3915,637188,130,072129,788,63502,289,664
14Apr 13, 2024 08:5515,637199,866,136129,790,76002,281,472
15Apr 13, 2024 06:4115,638207,417,556129,793,76202,293,760
16Apr 13, 2024 06:4115,638185,223,856129,797,46902,174,976
17Apr 13, 2024 06:3615,643192,045,338129,837,81902,285,568
18Apr 13, 2024 08:5815,644196,801,960129,848,85902,301,952
19Apr 13, 2024 06:4115,645192,437,769129,851,83702,301,952
20Apr 13, 2024 08:3915,645182,330,063129,852,11402,285,568
21Apr 13, 2024 08:5415,646184,800,081129,860,85702,293,760
22Apr 13, 2024 06:3615,649192,670,039129,888,48402,293,760
23Apr 13, 2024 08:5815,652183,032,976129,908,51402,269,184
24Apr 13, 2024 08:5515,778209,548,012130,958,13502,289,664
25Apr 13, 2024 06:4116,554160,502,175136,399,0001,002,0002,273,280
26Apr 13, 2024 08:5816,879166,623,172138,092,0002,001,0002,285,568
27Apr 13, 2024 06:4116,886165,650,225138,151,0002,002,0002,277,376
28Apr 13, 2024 08:5416,893168,196,244138,210,0002,003,0002,285,568
29Apr 13, 2024 08:5816,895169,934,769139,226,0001,001,0002,285,568
30Apr 13, 2024 06:4116,909161,631,824139,344,0001,002,0002,273,280
31Apr 13, 2024 08:5816,913161,593,852139,372,0001,002,0002,273,280
32Apr 13, 2024 08:5416,916162,192,064139,401,0001,002,0002,277,376
33Apr 13, 2024 06:4116,929167,133,395139,507,0001,003,0002,371,584
34Apr 13, 2024 08:5416,930168,999,755140,522,00002,269,184
35Apr 13, 2024 06:4116,934170,007,398139,546,0001,003,0002,285,568
36Apr 13, 2024 06:4116,936171,592,281139,562,0001,004,0002,285,568
37Apr 13, 2024 08:5816,948168,441,219138,671,0001,995,0002,273,280
38Apr 13, 2024 08:5816,952167,336,714138,704,0001,995,0002,285,568
39Apr 13, 2024 08:5416,956168,764,689138,742,0001,996,0002,285,568
40Apr 13, 2024 08:5416,958165,941,189140,753,00002,273,280
41Apr 13, 2024 08:5816,962167,622,199138,790,0001,996,0002,285,568
42Apr 13, 2024 08:5416,963163,040,512140,797,00002,273,280
43Apr 13, 2024 06:4116,967170,228,813139,828,000998,0002,285,568
44Apr 13, 2024 06:4116,970163,064,145139,854,000998,0002,285,568
45Apr 13, 2024 06:4117,056164,736,372139,570,0001,993,0002,285,568
46Apr 13, 2024 08:5817,534177,699,696144,532,0001,003,0002,285,568
47Apr 13, 2024 08:5417,544172,356,549143,624,0001,994,0002,273,280
48Apr 13, 2024 08:5417,563172,038,535144,775,000998,0002,265,088
49Apr 13, 2024 08:5817,565178,106,792143,791,0001,997,0002,277,376
50Apr 13, 2024 08:5417,592169,251,789144,011,0002,000,0002,265,088
51Apr 13, 2024 08:5817,639169,034,680146,406,00002,367,488