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 2, 2026 18:53Karthik 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 2, 2026 18:53022,448,9021,086,00012,520,00024,576expected "53687507559557941 ", got " A2479/2105 B1929 Bu833 C2736 Cu453 D1524 Du434 E1521 Eu435 Au600 s0 0b,231G,232H,233H,234H,235H,236H,237H,238H,239F,240F,241F,242F,243F,244F,245F,246F,247E,248E,249E, "
2Oct 2, 2026 18:53022,019,4781,084,00012,091,00024,576expected "53689626108913153 ", got " A2260/1885 B1734 Bu728 C2692 Cu570 D1497 Du499 E1471 Eu465 Au604 s0 0b,205c,232G,233E,234E,235G,236F,237F,238F,239F,240F,241F,242F,243F,244F,245F,246F,247E,248E,249E, "
3Oct 2, 2026 18:53022,352,1301,083,00012,456,00024,576expected "53681257669122677 ", got " A2333/1955 B1798 Bu787 C2760 Cu598 D1511 Du513 E1477 Eu473 Au609 s1 0b,59b,232H,233H,234H,235H,236H,237G,238F,239F,240F,241F,242F,243F,244F,245F,246E,247E,248E,249D, "