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 listJun 12, 2026 15:48Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 04:56Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 05:03011,271,50701,656,00036,864No answer to stdout. Died or killed?
2Jun 12, 2026 15:523,04397,249,71587,246,0001,016,0002,174,976
3Jun 12, 2026 15:523,04397,274,00287,140,0001,133,0002,129,920
4Jun 12, 2026 15:523,04497,248,88387,273,0001,017,0002,129,920
5Jun 12, 2026 15:523,04598,579,77687,302,0001,017,0002,129,920
6Jun 12, 2026 15:523,04597,303,86387,310,0001,019,0002,129,920
7Jun 12, 2026 15:523,04697,285,59687,335,0001,020,0002,129,920
8Jun 12, 2026 15:523,04697,234,58187,316,0001,018,0002,174,976
9Jun 12, 2026 15:523,04797,259,01587,351,0001,017,0002,174,976
10Jun 12, 2026 15:523,04797,370,30287,356,0001,023,0002,129,920