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 24, 2024 09:20Ilango RajagopalIlango RajagopalScore: 150,733Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2024 09:20150,3611,272,990,5551,065,145,000182,853,0002,445,312
2Sep 24, 2024 09:20150,7331,273,922,0061,065,223,000185,864,0002,342,912
3Sep 24, 2024 09:20150,8801,280,967,9731,063,406,000188,894,0002,453,504