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 27, 2024 01:14Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 01:1400000Error: No answer to stdout. Died or killed?
2Apr 27, 2024 01:0500000Error: No answer to stdout. Died or killed?
3Apr 27, 2024 01:0400000Error: No answer to stdout. Died or killed?
4Apr 27, 2024 01:1413,608186,449,579112,943,83502,281,472
5Apr 27, 2024 01:1413,731174,329,027113,964,05702,285,568
6Apr 27, 2024 01:0413,744168,346,165114,076,53002,277,376
7Apr 27, 2024 01:0413,774194,705,016114,324,14002,285,568
8Apr 27, 2024 01:0413,797165,233,859114,512,14202,269,184
9Apr 27, 2024 01:1413,814179,904,320114,653,72302,289,664
10Apr 27, 2024 01:1414,206141,455,463115,912,0001,998,0002,260,992
11Apr 27, 2024 01:1414,209140,556,765115,940,0001,998,0002,260,992
12Apr 27, 2024 01:1414,214142,413,748115,981,0001,999,0002,285,568
13Apr 27, 2024 01:1414,233146,284,056117,132,0001,001,0002,285,568
14Apr 27, 2024 01:1414,249145,358,641116,259,0002,004,0002,285,568
15Apr 27, 2024 01:1414,482142,848,526119,199,0001,001,0002,285,568
16Apr 27, 2024 01:1414,524152,068,459119,549,0001,004,0002,285,568
17Apr 27, 2024 01:1414,642147,680,038120,528,0001,004,0002,252,800
18Apr 27, 2024 01:1414,700143,840,515120,013,0002,000,0002,285,568