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 listJan 2, 2023 13:16A L ManningA L ManningScore: 144,159Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 13:19143,9871,265,692,7691,195,095,05602,236,416
2Jan 2, 2023 13:16144,0341,258,538,5851,195,482,82102,240,512
3Jan 2, 2023 13:19144,1511,263,742,3771,196,454,44602,224,128
4Jan 2, 2023 13:16144,1591,257,378,1341,196,517,16202,244,608
5Jan 2, 2023 13:16144,2331,257,683,4591,197,133,35602,228,224
6Jan 2, 2023 13:19144,2371,262,600,6191,197,168,72202,224,128