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:27Karthik 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,694,689,811684,619,0001,047,0002,113,536expected "53692191742355071 ", got " A25940 c20s1025036 c20s1125031 c20s1224929 c20s1324960 c20s1424958 c21s1225829 c21s1325799 c19s1325304 A25782 c20s1025036 c20s1125027 c20s1224931 c20s1324976 c20s1424951 c21s1225841 c21s1325783 c19s1325297 A25699 c2...
2Oct 5, 2026 09:2703,697,368,680686,949,0001,033,0002,113,536expected "53686144370476430 ", got " A26098 c20s1025126 c20s1125099 c20s1224956 c20s1324989 c20s1424933 c21s1226056 c21s1326025 c19s1325365 A25912 c20s1025110 c20s1125103 c20s1224972 c20s1324976 c20s1424925 c21s1226057 c21s1325986 c19s1325209 A25905 c2...
3Oct 5, 2026 09:2703,698,527,332688,167,0001,134,0002,113,536expected "53682474037659034 ", got " A26201 c20s1025189 c20s1125191 c20s1225030 c20s1325047 c20s1425011 c21s1226143 c21s1326073 c19s1325231 A25717 c20s1025176 c20s1125216 c20s1225045 c20s1325038 c20s1425013 c21s1226108 c21s1326084 c19s1325238 A25714 c2...