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 listMay 31, 2024 10:51GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 10:5200000Error: expected "53690687180795312 ", got "53690687180795056 "
2May 31, 2024 10:5100000Error: expected "53679931025459927 ", got "53679956965205815 "
3May 31, 2024 10:515,40372,225,31042,854,0001,993,0002,273,280
4May 31, 2024 10:515,40469,860,18743,832,0001,019,0002,273,280
5May 31, 2024 10:515,40569,856,92142,870,0001,993,0002,273,280
6May 31, 2024 10:515,40565,065,38343,866,000996,0002,506,752
7May 31, 2024 10:515,40866,959,62042,894,0001,995,0002,273,280
8May 31, 2024 10:515,41071,317,70342,910,0001,995,0002,400,256
9May 31, 2024 10:515,41167,756,78743,913,000998,0002,400,256
10May 31, 2024 10:515,41273,123,12943,919,000998,0002,273,280
11May 31, 2024 10:515,41372,275,73642,934,0001,996,0002,273,280
12May 31, 2024 10:515,41565,145,52842,944,0001,997,0002,273,280
13May 31, 2024 10:515,41672,488,43842,953,0001,997,0002,514,944
14May 31, 2024 10:515,41868,135,38142,972,0001,998,0002,273,280
15May 31, 2024 10:515,41872,234,70742,975,0001,998,0002,510,848
16May 31, 2024 10:515,42267,838,90743,005,0002,000,0002,273,280
17May 31, 2024 10:515,42276,019,89044,001,0001,000,0002,273,280
18May 31, 2024 10:515,42467,091,82344,023,0001,000,0002,404,352
19May 31, 2024 10:515,42868,327,96144,049,0001,001,0002,404,352
20May 31, 2024 10:515,43267,403,77143,083,0002,003,0002,400,256
21May 31, 2024 10:515,44973,972,30543,220,0002,010,0002,400,256
22May 31, 2024 10:515,45267,349,04844,243,0001,005,0002,404,352
23May 31, 2024 10:515,46068,441,81144,310,0001,007,0002,273,280
24May 31, 2024 10:515,608104,911,72046,547,07202,289,664
25May 31, 2024 10:515,61971,448,26145,625,0001,013,0002,400,256
26May 31, 2024 10:515,620113,078,51846,644,02002,281,472
27May 31, 2024 10:515,628119,692,15346,708,73202,281,472
28May 31, 2024 10:515,636107,197,51146,776,25402,285,568
29May 31, 2024 10:515,637108,659,96446,788,73602,285,568
30May 31, 2024 10:515,64072,298,71545,820,000996,0002,273,280
31May 31, 2024 10:515,64377,079,69044,842,0001,992,0002,400,256
32May 31, 2024 10:515,644113,407,59546,848,74602,281,472
33May 31, 2024 10:515,750117,668,14547,722,26202,289,664
34May 31, 2024 10:515,755107,380,55947,762,46402,293,760
35May 31, 2024 10:515,828113,578,17848,375,49202,293,760