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 listJun 18, 2024 19:30джулисджулисScore: 156,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2024 19:30156,1811,356,090,7501,296,303,55002,224,128
2Jun 18, 2024 19:30156,6301,362,145,8431,300,027,63502,236,416
3Jun 18, 2024 19:30156,6891,367,227,5791,300,520,57102,236,416
4Jun 18, 2024 19:30156,7341,372,580,4051,300,893,91902,236,416
5Jun 18, 2024 19:30156,7401,358,549,4871,300,942,48502,248,704
6Jun 18, 2024 19:30157,2061,385,543,4741,304,811,25802,240,512