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 20:37Joad NacerJoad NacerScore: 28,249Success
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 19:0228,046293,067,209232,784,99802,269,184
2Apr 26, 2024 19:0228,072293,906,520232,994,14302,269,184
3Apr 26, 2024 20:3728,203256,955,904232,082,0002,000,0002,375,680
4Apr 26, 2024 19:0228,205259,252,033232,099,0002,000,0002,260,992
5Apr 26, 2024 20:3728,209258,276,851232,136,0002,001,0002,277,376
6Apr 26, 2024 19:0228,215255,742,800233,186,0001,000,0002,285,568
7Apr 26, 2024 19:0228,234262,304,667233,338,0001,001,0002,277,376
8Apr 26, 2024 19:0228,236255,692,055233,361,0001,001,0002,510,848
9Apr 26, 2024 20:3728,238257,608,398233,372,0001,001,0002,260,992
10Apr 26, 2024 20:3728,242260,094,193233,406,0001,001,0002,285,568
11Apr 26, 2024 19:0228,245261,313,332233,435,0001,001,0002,277,376
12Apr 26, 2024 19:0228,246264,055,751232,444,0001,995,0002,510,848
13Apr 26, 2024 20:3728,249262,889,154233,465,0001,001,0002,285,568
14Apr 26, 2024 20:3728,254267,499,729233,505,0001,002,0002,523,136
15Apr 26, 2024 20:3728,259265,847,013233,548,0001,002,0002,285,568
16Apr 26, 2024 19:0228,263265,506,178234,581,00002,285,568
17Apr 26, 2024 20:3728,280265,121,274233,723,000998,0002,363,392
18Apr 26, 2024 19:0228,282259,478,631233,739,000998,0002,519,040
19Apr 26, 2024 20:3728,286257,824,785232,777,0001,998,0002,510,848
20Apr 26, 2024 19:0228,288261,092,256233,784,0001,003,0002,285,568
21Apr 26, 2024 20:3730,044322,122,597249,368,66202,256,896
22Apr 26, 2024 20:3730,086302,725,619249,714,41602,256,896
23Apr 26, 2024 19:0230,086307,481,871249,715,55502,277,376
24Apr 26, 2024 20:3730,109318,528,979249,902,51102,277,376