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 listAug 2, 2026 01:21alf-p-steinbachalf-p-steinbachError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2026 01:210538,382,094462,258,00065,151,0002,113,536expected "53684176785965176 ", got "50000000 values, sum = 53684176785965176. "
2Aug 2, 2026 01:210537,380,636461,225,00065,334,0002,113,536expected "53688279799884484 ", got "50000000 values, sum = 53688279799884484. "
3Aug 2, 2026 01:210536,870,298461,887,00064,143,0002,113,536expected "53692157966290691 ", got "50000000 values, sum = 53692157966290691. "