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 20:47Joad NacerJoad NacerScore: 10,057Success
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 20:4710,021108,720,89081,167,0002,004,0002,285,568
2Apr 27, 2024 20:4710,023105,810,76481,190,0002,004,0002,269,184
3Apr 27, 2024 20:4710,023109,672,75882,193,0001,002,0002,273,280
4Apr 27, 2024 20:4710,025105,854,52981,202,0002,004,0002,269,184
5Apr 27, 2024 20:4710,034105,907,95481,276,0002,006,0002,285,568
6Apr 27, 2024 20:4710,037104,588,10082,303,0001,003,0002,265,088
7Apr 27, 2024 20:4710,043104,755,16381,349,0002,008,0002,285,568
8Apr 27, 2024 20:4710,057106,093,94082,467,0001,005,0002,277,376
9Apr 27, 2024 20:4710,074109,660,52883,614,00002,285,568
10Apr 27, 2024 20:4710,406160,736,81386,369,48602,269,184
11Apr 27, 2024 20:4710,445149,027,54986,693,84002,269,184
12Apr 27, 2024 20:4710,860110,851,92589,133,0001,001,0002,285,568
13Apr 27, 2024 20:4710,867115,925,96688,191,0002,004,0002,265,088
14Apr 27, 2024 20:4710,908117,228,28190,537,00002,265,088
15Apr 27, 2024 20:4711,087151,635,38092,021,31502,273,280