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:50leeian1011leeian1011Score: 352,344Success
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:50351,4272,995,804,8462,916,848,04102,191,360
2Sep 26, 2023 07:51351,5322,979,789,7642,917,715,47402,203,648
3Sep 26, 2023 07:49351,6032,987,636,6982,918,303,53502,195,456
4Sep 26, 2023 07:50351,6912,976,252,8142,919,032,20302,256,896
5Sep 26, 2023 07:49351,8442,985,898,6492,920,302,65802,187,264
6Sep 26, 2023 07:50351,9102,980,325,9152,920,854,68002,183,168
7Sep 26, 2023 07:50352,3442,986,289,1432,924,457,37802,191,360
8Sep 26, 2023 07:51352,6452,993,217,5282,926,955,41802,187,264
9Sep 26, 2023 07:50353,0732,995,883,4832,930,502,71402,195,456
10Sep 26, 2023 07:49353,6883,006,475,5372,935,614,42802,191,360
11Sep 26, 2023 07:51354,3373,010,945,3772,940,999,29502,191,360
12Sep 26, 2023 07:50354,5003,008,264,3672,942,348,07302,203,648