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 26, 2024 21:25Joad NacerJoad NacerScore: 28,246Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 20:4028,067306,560,735232,952,48702,281,472
2Apr 26, 2024 21:2528,083293,068,144233,085,13302,273,280
3Apr 26, 2024 20:4028,085290,789,109233,106,91602,285,568
4Apr 26, 2024 21:2528,085291,191,166233,109,32002,281,472
5Apr 26, 2024 20:4028,093304,380,330233,176,02802,281,472
6Apr 26, 2024 21:2528,103292,184,646233,258,31402,277,376
7Apr 26, 2024 20:4028,194261,029,626232,011,0002,000,0002,277,376
8Apr 26, 2024 20:4028,195257,188,084233,022,0001,000,0002,510,848
9Apr 26, 2024 20:4028,202262,220,602232,078,0002,000,0002,514,944
10Apr 26, 2024 21:2528,221258,062,537232,233,0002,002,0002,514,944
11Apr 26, 2024 21:2528,225264,043,028232,265,0002,002,0002,510,848
12Apr 26, 2024 20:4028,242257,313,013234,412,00002,510,848
13Apr 26, 2024 20:4028,246261,702,078233,444,0001,001,0002,285,568
14Apr 26, 2024 20:4028,249265,189,020233,463,0001,001,0002,285,568
15Apr 26, 2024 21:2528,249261,896,192233,463,0001,001,0002,285,568
16Apr 26, 2024 21:2528,249262,749,447233,467,0001,002,0002,277,376
17Apr 26, 2024 21:2528,252260,294,441233,488,0001,002,0002,519,040
18Apr 26, 2024 21:2528,255266,354,448233,514,0001,002,0002,519,040
19Apr 26, 2024 21:2528,257265,372,762233,532,0001,002,0002,260,992
20Apr 26, 2024 20:4028,259263,336,372233,546,0001,002,0002,285,568
21Apr 26, 2024 21:2528,268265,185,655233,621,0001,002,0002,277,376
22Apr 26, 2024 21:2528,276258,941,043232,691,0001,997,0002,285,568
23Apr 26, 2024 20:4028,284267,597,829232,761,0001,997,0002,285,568
24Apr 26, 2024 20:4028,285259,990,524232,765,0001,997,0002,285,568