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 listOct 14, 2024 16:46Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 16:4100000Error: expected "53684872475725240 ", got "53684881077260892 "stderr
2Oct 14, 2024 16:4000000Error: expected "53691672095250043 ", got "53691671972567227 "stderr
3Oct 14, 2024 16:4000000Error: expected "53681570373272780 ", got "53681588033164961 "stderr
4Oct 14, 2024 16:4000000Error: expected "53688027335048992 ", got "53688036108796031 "stderr
5Oct 14, 2024 16:3900000Error: expected "53688287474345263 ", got "53688298112857796 "stderr
6Oct 14, 2024 16:4100000Error: expected "53688823845723696 ", got "53688824573297396 "stderr
7Oct 14, 2024 16:4300000Error: expected "53691346922436613 ", got "53691349431735863 "stderr
8Oct 14, 2024 16:4600000Error: expected "53681875828397568 ", got "53681879831901342 "stderr
9Oct 14, 2024 16:4700000Error: expected "53692511602037966 ", got "53692519372245513 "stderr
10Oct 14, 2024 16:424,23055,783,63232,103,0003,009,0002,273,280
11Oct 14, 2024 16:414,23756,725,30534,159,0001,004,0002,535,424
12Oct 14, 2024 16:414,24461,159,27435,222,00002,301,952
13Oct 14, 2024 16:434,24855,354,41934,251,0001,007,0002,273,280
14Oct 14, 2024 16:414,25461,380,52634,297,0001,008,0002,297,856
15Oct 14, 2024 16:434,25762,656,13033,312,0002,018,0002,314,240
16Oct 14, 2024 16:434,25855,372,97532,310,0003,029,0002,301,952
17Oct 14, 2024 16:394,26259,968,61032,346,0003,032,0002,535,424
18Oct 14, 2024 16:424,26658,913,57532,373,0003,035,0002,273,280
19Oct 14, 2024 16:414,27157,958,87434,439,0001,012,0002,273,280
20Oct 14, 2024 16:414,27156,548,55832,409,0003,038,0002,306,048
21Oct 14, 2024 16:434,27157,170,86734,435,0001,012,0002,310,144
22Oct 14, 2024 16:424,27363,708,16234,452,0001,013,0002,535,424
23Oct 14, 2024 16:414,27459,992,28534,461,0001,013,0002,297,856
24Oct 14, 2024 16:434,27461,588,28733,446,0002,027,0002,494,464
25Oct 14, 2024 16:424,27757,982,20034,482,0001,014,0002,301,952
26Oct 14, 2024 16:424,27856,276,14934,494,0001,014,0002,310,144
27Oct 14, 2024 16:414,27853,050,02535,506,00002,301,952
28Oct 14, 2024 16:394,28062,331,14033,492,0002,029,0002,297,856
29Oct 14, 2024 16:424,28055,654,28033,494,0002,029,0002,306,048
30Oct 14, 2024 16:424,28363,994,97434,533,0001,015,0002,535,424
31Oct 14, 2024 16:394,28471,195,41134,539,0001,015,0002,293,760
32Oct 14, 2024 16:424,28759,049,28735,583,00002,297,856
33Oct 14, 2024 16:434,28763,266,49133,546,0002,033,0002,293,760
34Oct 14, 2024 16:434,29063,071,89335,609,00002,293,760
35Oct 14, 2024 16:394,29461,328,64735,641,00002,396,160
36Oct 14, 2024 16:414,29763,718,36935,664,00002,297,856
37Oct 14, 2024 16:424,31764,775,60434,839,000995,0002,535,424
38Oct 14, 2024 16:424,31860,356,24934,848,000995,0002,297,856
39Oct 14, 2024 16:434,31865,742,54633,852,0001,991,0002,301,952
40Oct 14, 2024 16:414,31962,890,19933,855,0001,991,0002,535,424
41Oct 14, 2024 16:414,32170,162,84434,870,000996,0002,293,760
42Oct 14, 2024 16:434,32856,938,51133,926,0001,995,0002,301,952
43Oct 14, 2024 16:434,33063,655,83834,940,000998,0002,306,048
44Oct 14, 2024 16:394,33162,889,45733,954,0001,997,0002,273,280
45Oct 14, 2024 16:414,33855,858,96635,004,0001,000,0002,531,328
46Oct 14, 2024 16:434,33961,195,82635,011,0001,000,0002,301,952
47Oct 14, 2024 16:424,33958,676,33034,014,0002,000,0002,531,328
48Oct 14, 2024 16:394,34062,733,79835,023,0001,000,0002,269,184
49Oct 14, 2024 16:474,35359,201,56934,121,0002,007,0002,273,280
50Oct 14, 2024 16:424,35760,290,77134,151,0002,008,0002,531,328
51Oct 14, 2024 16:414,36256,798,10736,203,00002,306,048
52Oct 14, 2024 16:474,38161,502,83835,352,0001,010,0002,478,080
53Oct 14, 2024 16:434,38368,516,96635,370,0001,010,0002,301,952
54Oct 14, 2024 16:464,41167,840,02234,576,0002,033,0002,535,424
55Oct 14, 2024 16:464,41264,890,45135,604,0001,017,0002,301,952
56Oct 14, 2024 16:474,45263,284,26835,951,000998,0002,535,424
57Oct 14, 2024 16:464,47066,199,57835,094,0002,005,0002,297,856
58Oct 14, 2024 16:414,47260,741,61036,118,0001,003,0002,531,328
59Oct 14, 2024 16:464,48258,635,80036,193,0001,005,0002,531,328
60Oct 14, 2024 16:414,50161,474,79836,346,0001,009,0002,273,280
61Oct 14, 2024 16:464,51559,968,09734,438,0003,038,0002,535,424
62Oct 14, 2024 16:464,52364,685,26835,509,0002,029,0002,396,160
63Oct 14, 2024 16:414,53874,026,10336,651,0001,018,0002,535,424
64Oct 14, 2024 16:464,55867,609,93836,838,000995,0002,306,048
65Oct 14, 2024 16:464,70861,355,89838,074,0001,001,0002,301,952
66Oct 14, 2024 16:464,82360,159,77738,030,0002,001,0002,297,856