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 listJul 20, 2023 18:21gchebanovgchebanovScore: 11,696Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 18:2111,657119,818,80194,760,0001,994,0002,301,952
2Jul 20, 2023 18:2111,662120,863,58094,797,0001,995,0002,281,472
3Jul 20, 2023 18:2111,671122,449,27595,871,000998,0002,289,664
4Jul 20, 2023 18:2111,671124,776,20894,869,0001,997,0002,469,888
5Jul 20, 2023 18:2111,672117,953,51194,878,0001,997,0002,281,472
6Jul 20, 2023 18:2111,675119,503,23494,904,0001,997,0002,535,424
7Jul 20, 2023 18:2111,683118,857,38394,971,0001,999,0002,453,504
8Jul 20, 2023 18:2111,696121,307,02594,076,0003,002,0002,469,888
9Jul 20, 2023 18:2111,764156,368,07597,637,52302,289,664
10Jul 20, 2023 18:2111,772168,059,39597,708,41002,285,568
11Jul 20, 2023 18:2111,776150,574,81597,741,39702,281,472
12Jul 20, 2023 18:2111,938124,558,60397,085,0002,001,0002,297,856
13Jul 20, 2023 18:2111,943125,893,51396,121,0003,003,0002,469,888
14Jul 20, 2023 18:2111,947121,258,12798,159,0001,001,0002,297,856
15Jul 20, 2023 18:2112,427128,642,340101,142,0002,002,0002,457,600