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:08Karthik 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:08022,397,9881,097,00012,403,0002,117,632expected "53690132281941132 ", got " A2350/1971 B1830 Bu749 C2728 Cu457 D1532 Du440 E1528 Eu440 Au603 s0 0b,231G,232F,233H,234G,235F,236F,237F,238F,239F,240F,241F,242F,243F,244E,245E,246E,247E,248E,249D, "
2Oct 2, 2026 18:08022,952,3471,102,00013,075,0002,117,632expected "53686081248480101 ", got " A2372/1996 B1857 Bu789 C2786 Cu620 D1585 Du533 E1553 Eu491 Au638 s1 0b,231F,232G,233H,234H,235G,236F,237F,238F,239F,240F,241F,242F,243F,244F,245E,246E,247E,248E,249E, "
3Oct 2, 2026 18:08022,123,2421,084,00012,188,00024,576expected "53683848806575362 ", got " A2277/1899 B1742 Bu747 C2711 Cu575 D1505 Du501 E1476 Eu468 Au606 s0 0b,232F,233I,234H,235G,236F,237F,238F,239F,240F,241F,242F,243F,244E,245E,246E,247E,248E,249D, "