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 10, 2024 12:19Joad NacerJoad NacerScore: 7,135Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2024 12:197,11176,280,70858,022,0001,000,0002,535,424
2Oct 10, 2024 12:177,11378,235,41058,040,0001,000,0002,428,928
3Oct 10, 2024 12:177,11491,140,37458,047,0001,000,0002,273,280
4Oct 10, 2024 12:187,11582,312,53957,055,0002,001,0002,428,928
5Oct 10, 2024 12:197,12083,624,94259,092,00002,437,120
6Oct 10, 2024 12:187,12082,992,23958,091,0001,001,0002,273,280
7Oct 10, 2024 12:197,12086,164,32658,096,0001,001,0002,428,928
8Oct 10, 2024 12:187,12184,066,08958,106,0001,001,0002,535,424
9Oct 10, 2024 12:197,12383,528,69458,122,0001,002,0002,535,424
10Oct 10, 2024 12:197,12480,378,01857,126,0002,004,0002,424,832
11Oct 10, 2024 12:187,12482,784,15857,123,0002,004,0002,433,024
12Oct 10, 2024 12:197,12782,342,97757,153,0002,005,0002,424,832
13Oct 10, 2024 12:187,12783,344,52758,150,0001,002,0002,535,424
14Oct 10, 2024 12:177,12888,739,80657,159,0002,005,0002,535,424
15Oct 10, 2024 12:197,13079,840,56258,175,0001,003,0002,428,928
16Oct 10, 2024 12:177,13379,971,70457,196,0002,006,0002,535,424
17Oct 10, 2024 12:187,13479,636,96058,206,0001,003,0002,535,424
18Oct 10, 2024 12:177,13580,153,06757,211,0002,007,0002,273,280
19Oct 10, 2024 12:177,13579,466,21558,215,0001,003,0002,273,280
20Oct 10, 2024 12:177,13681,234,78558,226,0001,003,0002,535,424
21Oct 10, 2024 12:177,13786,664,46258,230,0001,003,0002,535,424
22Oct 10, 2024 12:187,13985,478,06858,248,0001,004,0002,273,280
23Oct 10, 2024 12:197,14081,177,22058,262,0001,004,0002,273,280
24Oct 10, 2024 12:187,14382,877,73958,287,0001,004,0002,273,280
25Oct 10, 2024 12:197,14485,486,23757,283,0002,009,0002,428,928
26Oct 10, 2024 12:187,14878,994,18459,326,00002,433,024
27Oct 10, 2024 12:177,77186,808,23264,497,00002,428,928
28Oct 10, 2024 12:188,16891,972,15367,796,00002,531,328
29Oct 10, 2024 12:188,16991,315,22666,804,000997,0002,531,328
30Oct 10, 2024 12:198,17195,086,58865,824,0001,994,0002,531,328
31Oct 10, 2024 12:178,18492,911,37466,930,000998,0002,510,848
32Oct 10, 2024 12:178,18789,854,16765,950,0001,998,0002,531,328
33Oct 10, 2024 12:198,19288,033,50265,991,0001,999,0002,420,736
34Oct 10, 2024 12:198,19488,172,37767,009,0001,000,0002,437,120
35Oct 10, 2024 12:188,19493,508,92467,010,0001,000,0002,502,656
36Oct 10, 2024 12:178,20890,572,73166,120,0002,003,0002,531,328