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 listSep 26, 2023 07:53leeian1011leeian1011Score: 351,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 26, 2023 07:52351,2112,987,691,9472,915,052,16202,191,360
2Sep 26, 2023 07:52351,4352,979,082,2842,916,907,04802,199,552
3Sep 26, 2023 07:52351,5402,981,465,3722,917,783,35902,191,360
4Sep 26, 2023 07:52351,5602,980,377,1082,917,947,32402,199,552
5Sep 26, 2023 07:52351,7692,983,212,6432,919,680,07002,191,360
6Sep 26, 2023 07:52352,2422,987,768,8252,923,609,21202,195,456
7Sep 26, 2023 07:53352,6022,984,204,8072,926,600,38202,195,456
8Sep 26, 2023 07:53352,8442,992,567,8722,928,606,93102,191,360
9Sep 26, 2023 07:53368,9403,120,567,1203,062,202,97902,187,264