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 listOct 5, 2026 09:26Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 09:2703,708,557,090698,480,0001,095,0002,113,536expected "53695547714894036 ", got " A25820 c19s1025328 c19s1425265 c19s1626018 c19s2025329 c19s2425458 c19s3228551 c20s1225093 c20s1625761 A25705 c19s1025314 c19s1425293 c19s1626030 c19s2025325 c19s2425452 c19s3228224 c20s1225084 c20s1625709 A25674 c1...
2Oct 5, 2026 09:2703,705,208,887695,123,0001,185,0002,113,536expected "53687393007275449 ", got " A25945 c19s1025179 c19s1425138 c19s1625886 c19s2025448 c19s2425311 c19s3228079 c20s1224887 c20s1625523 A25752 c19s1025162 c19s1425135 c19s1625869 c19s2025285 c19s2425351 c19s3228020 c20s1224889 c20s1625548 A25750 c1...
3Oct 5, 2026 09:2703,702,785,562692,292,0001,193,0002,113,536expected "53685484000564460 ", got " A25797 c19s1025067 c19s1424995 c19s1625786 c19s2025039 c19s2425158 c19s3228018 c20s1224869 c20s1625510 A25642 c19s1025243 c19s1425068 c19s1625778 c19s2025047 c19s2425153 c19s3228008 c20s1224875 c20s1625484 A25645 c1...