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 listMay 15, 2026 19:06M-RochatM-RochatScore: 6,401Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2026 19:076,376193,658,819162,630,00022,293,0002,113,536
2May 15, 2026 19:076,382193,764,520162,386,00022,693,0002,113,536
3May 15, 2026 19:076,388193,982,780162,350,00022,918,0002,113,536
4May 15, 2026 19:076,391195,587,148162,523,00022,838,0002,113,536
5May 15, 2026 19:076,401196,023,231162,350,00023,283,0002,113,536
6May 15, 2026 19:076,402194,344,135162,674,00023,007,0002,113,536
7May 15, 2026 19:076,416194,827,632162,759,00023,318,0002,113,536
8May 15, 2026 19:076,440197,905,792162,787,00023,982,0002,113,536
9May 15, 2026 19:076,440195,589,480162,307,00024,475,0002,113,536