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 16:26Joad NacerJoad NacerScore: 12,793Success
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 16:2512,731134,588,704105,667,00002,285,568
2Apr 27, 2024 16:2612,745134,255,319104,783,000997,0002,277,376
3Apr 27, 2024 16:2512,746130,383,375103,793,0001,996,0002,351,104
4Apr 27, 2024 16:2612,749130,282,571104,820,000998,0002,260,992
5Apr 27, 2024 16:2512,750134,743,268103,832,0001,996,0002,285,568
6Apr 27, 2024 16:2512,751131,383,361103,839,0001,996,0002,285,568
7Apr 27, 2024 16:2512,752131,395,783104,840,000998,0002,285,568
8Apr 27, 2024 16:2612,760129,303,716103,906,0001,998,0002,285,568
9Apr 27, 2024 16:2612,775129,096,987104,030,0002,000,0002,285,568
10Apr 27, 2024 16:2512,775133,820,426104,032,0002,000,0002,277,376
11Apr 27, 2024 16:2612,783134,552,118104,097,0002,001,0002,523,136
12Apr 27, 2024 16:2512,792130,390,045104,169,0002,003,0002,510,848
13Apr 27, 2024 16:2612,793126,012,036104,179,0002,003,0002,285,568
14Apr 27, 2024 16:2612,794132,285,071104,184,0002,003,0002,265,088
15Apr 27, 2024 16:2612,885134,908,467104,949,0001,999,0002,510,848
16Apr 27, 2024 16:2512,920129,351,358105,231,0002,004,0002,285,568
17Apr 27, 2024 16:2514,075146,659,295115,827,000998,0002,277,376
18Apr 27, 2024 16:2514,142182,562,036117,380,09002,281,472
19Apr 27, 2024 16:2614,163185,519,482117,552,59502,281,472
20Apr 27, 2024 16:2614,202190,380,138117,872,46002,277,376
21Apr 27, 2024 16:2614,402187,829,163119,537,45702,285,568
22Apr 27, 2024 16:2514,534176,737,288120,628,16002,285,568
23Apr 27, 2024 16:2614,590144,871,852119,092,0002,001,0002,285,568
24Apr 27, 2024 16:2523,964280,577,721198,899,24502,285,568