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 listApr 18, 2026 17:45Charles CabergsCharles CabergsScore: 5,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 17:455,562187,152,583159,282,0002,003,0002,289,664
2Apr 18, 2026 17:455,579189,049,949160,790,000998,0002,289,664
3Apr 18, 2026 17:455,579188,165,294159,806,0001,997,0002,469,888
4Apr 18, 2026 17:455,581188,787,667160,837,000998,0002,289,664
5Apr 18, 2026 17:455,581188,058,730159,838,0001,997,0002,465,792
6Apr 18, 2026 17:455,582189,428,478159,887,0001,998,0002,461,696
7Apr 18, 2026 17:455,589188,704,334160,084,0002,001,0002,473,984
8Apr 18, 2026 17:455,596182,655,600161,296,0001,001,0002,281,472
9Apr 18, 2026 17:455,607190,060,441161,611,0001,003,0002,281,472