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 15:08Joad NacerJoad NacerScore: 15,408Success
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 15:0814,514191,888,677120,468,17902,293,760
2Apr 27, 2024 15:0814,554179,089,011120,801,25402,281,472
3Apr 27, 2024 15:0814,606175,006,833121,226,64402,273,280
4Apr 27, 2024 15:0814,613179,176,941121,286,08502,281,472
5Apr 27, 2024 15:0814,671190,311,353121,768,31002,293,760
6Apr 27, 2024 15:0814,769194,404,492122,584,17302,277,376
7Apr 27, 2024 15:0815,312151,850,961125,091,0002,001,0002,510,848
8Apr 27, 2024 15:0815,398158,792,149126,802,000998,0002,285,568
9Apr 27, 2024 15:0815,398158,491,084126,802,000998,0002,285,568
10Apr 27, 2024 15:0815,400152,234,809126,821,000998,0002,285,568
11Apr 27, 2024 15:0815,401154,445,175125,835,0001,997,0002,285,568
12Apr 27, 2024 15:0815,407151,088,679125,882,0001,998,0002,519,040
13Apr 27, 2024 15:0815,408157,108,793125,887,0001,998,0002,285,568
14Apr 27, 2024 15:0815,411154,773,173125,914,0001,998,0002,519,040
15Apr 27, 2024 15:0815,664159,547,921128,012,0002,000,0002,277,376
16Apr 27, 2024 15:0815,801152,210,236130,145,0001,001,0002,285,568
17Apr 27, 2024 15:0815,877160,140,130129,787,0001,996,0002,277,376
18Apr 27, 2024 15:0815,879162,959,602129,797,0001,996,0002,519,040
19Apr 27, 2024 15:0815,899159,459,951129,961,0001,999,0002,285,568
20Apr 27, 2024 15:0816,036156,786,317131,101,0002,001,0002,285,568
21Apr 27, 2024 15:0816,242164,370,065132,810,0001,997,0002,277,376
22Apr 27, 2024 15:0816,365165,660,542133,829,0001,997,0002,523,136
23Apr 27, 2024 15:0816,401159,850,155135,128,0001,000,0002,285,568
24Apr 27, 2024 15:0816,485159,589,134135,825,000998,0002,510,848