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:27джулисджулисScore: 164,746Success
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:27164,6211,424,495,4461,366,357,71102,363,392
2Jun 18, 2024 19:27164,7461,438,454,3381,367,395,42702,355,200
3Jun 18, 2024 19:27165,0171,426,065,2331,369,644,18402,351,104