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 listJul 2, 2026 00:46A_ShamanA_ShamanScore: 4,863Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 00:474,850150,027,915139,611,0001,039,0002,113,536
2Jul 2, 2026 00:474,855150,077,671139,812,0001,011,0002,113,536
3Jul 2, 2026 00:474,861150,305,121140,977,00002,113,536
4Jul 2, 2026 00:474,862151,895,230141,001,00002,113,536
5Jul 2, 2026 00:474,863150,435,809141,043,00002,113,536
6Jul 2, 2026 00:474,866150,523,248141,114,00002,113,536
7Jul 2, 2026 00:474,866150,887,319140,111,0001,018,0002,113,536
8Jul 2, 2026 00:474,868150,489,435140,178,0001,008,0002,113,536
9Jul 2, 2026 00:474,871151,137,500140,260,0001,008,0002,113,536