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 11, 2024 09:45Matt StuchlikMatt StuchlikScore: 20,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 09:4218,672216,150,989154,978,02902,285,568
2Apr 11, 2024 09:4218,679217,873,040155,039,12202,293,760
3Apr 11, 2024 09:4418,688219,919,726155,111,97802,293,760
4Apr 11, 2024 09:4518,691218,595,948155,139,39102,285,568
5Apr 11, 2024 09:4418,697225,894,263155,183,14002,297,856
6Apr 11, 2024 09:4518,699213,390,829155,204,60002,293,760
7Apr 11, 2024 09:4518,702228,865,192155,229,39902,297,856
8Apr 11, 2024 09:4219,713188,797,445163,618,00002,285,568
9Apr 11, 2024 09:4219,716190,385,040162,643,0001,003,0002,269,184
10Apr 11, 2024 09:4519,891221,530,967165,096,28702,297,856
11Apr 11, 2024 09:4519,911219,389,524165,257,33002,293,760
12Apr 11, 2024 09:4519,916220,278,373165,303,18302,297,856
13Apr 11, 2024 09:4419,916230,760,760165,302,75802,285,568
14Apr 11, 2024 09:4219,917231,391,749165,310,83802,289,664
15Apr 11, 2024 09:4420,237194,874,620166,968,000999,0002,285,568
16Apr 11, 2024 09:4420,239197,827,026166,988,000999,0002,285,568
17Apr 11, 2024 09:4220,241194,439,537165,999,0001,999,0002,273,280
18Apr 11, 2024 09:4520,243190,710,262166,018,0002,000,0002,269,184
19Apr 11, 2024 09:4520,246191,121,651166,038,0002,000,0002,281,472
20Apr 11, 2024 09:4520,247190,537,570166,050,0002,000,0002,285,568
21Apr 11, 2024 09:4220,247191,101,089166,050,0002,000,0002,285,568
22Apr 11, 2024 09:4220,248194,930,094166,060,0002,000,0002,277,376
23Apr 11, 2024 09:4420,248192,932,855166,057,0002,000,0002,285,568
24Apr 11, 2024 09:4420,249197,153,408166,068,0002,000,0002,285,568
25Apr 11, 2024 09:4220,249190,970,361166,070,0002,000,0002,285,568
26Apr 11, 2024 09:4520,249191,220,710166,066,0002,000,0002,285,568
27Apr 11, 2024 09:4220,251195,236,472167,085,0001,000,0002,277,376
28Apr 11, 2024 09:4420,251189,655,098166,083,0002,001,0002,285,568
29Apr 11, 2024 09:4420,251196,870,411166,080,0002,000,0002,273,280
30Apr 11, 2024 09:4520,252189,501,383167,093,0001,000,0002,285,568
31Apr 11, 2024 09:4420,257193,806,973166,135,0002,001,0002,273,280
32Apr 11, 2024 09:4220,260192,206,523166,157,0002,001,0002,273,280
33Apr 11, 2024 09:4420,267189,827,936166,216,0002,002,0002,285,568
34Apr 11, 2024 09:4520,268192,831,362166,225,0002,002,0002,285,568
35Apr 11, 2024 09:4220,270198,092,226166,235,0002,002,0002,273,280
36Apr 11, 2024 09:4520,271197,213,939166,247,0002,002,0002,285,568
37Apr 11, 2024 09:4520,273197,732,242166,260,0002,003,0002,260,992
38Apr 11, 2024 09:4520,283193,690,209167,343,0001,002,0002,285,568
39Apr 11, 2024 09:4420,290193,340,461167,406,0001,002,0002,285,568