Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listJan 2, 2026 19:14Josu San MartinJosu San MartinScore: 5,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 18:115,603184,645,287162,482,00002,289,664
2Jan 2, 2026 18:115,604188,516,445161,511,0001,003,0002,342,912
3Jan 2, 2026 18:115,605185,479,069162,547,00002,289,664
4Jan 2, 2026 19:145,605181,144,525162,549,00002,289,664
5Jan 2, 2026 19:145,613192,468,688160,789,0001,997,0002,289,664
6Jan 2, 2026 19:145,614189,959,172160,818,0001,997,0002,289,664