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 22, 2024 18:56Steve HanSteve HanScore: 68,824Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 18:5641,443403,428,534343,977,88202,281,472
2Apr 22, 2024 18:5641,446407,544,244343,997,82802,289,664
3Apr 22, 2024 18:5641,467403,203,241344,178,69402,281,472
4Apr 22, 2024 18:5542,021432,905,923348,773,07102,281,472
5Apr 22, 2024 18:5542,022418,112,249348,782,60002,285,568
6Apr 22, 2024 18:5542,029408,498,712348,841,22802,277,376
7Apr 22, 2024 18:5568,680646,804,846570,047,53202,289,664
8Apr 22, 2024 18:5568,824639,358,362571,236,06502,285,568
9Apr 22, 2024 18:5568,916629,297,120572,006,33902,285,568
10Apr 22, 2024 18:5469,023634,163,802572,894,21502,277,376
11Apr 22, 2024 18:5469,026638,833,384572,915,94302,277,376
12Apr 22, 2024 18:5669,043633,977,271573,058,44802,285,568
13Apr 22, 2024 18:5669,082633,556,574573,384,38302,285,568
14Apr 22, 2024 18:5669,085628,790,629573,405,89002,277,376
15Apr 22, 2024 18:5469,096634,753,601573,496,68502,285,568