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 listNov 14, 2024 23:16Ilango RajagopalIlango RajagopalScore: 110,990Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 23:16110,665947,490,884739,615,000178,907,0002,457,600
2Nov 14, 2024 23:16110,990943,522,696742,366,000178,847,0002,449,408
3Nov 14, 2024 23:16111,025951,109,324742,604,000178,904,0002,281,472