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 21, 2026 00:44A_ShamanA_ShamanScore: 6,449Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 00:456,434196,267,740162,745,00023,847,0002,117,632
2Jun 21, 2026 00:456,438195,942,029162,825,00023,877,0002,117,632
3Jun 21, 2026 00:456,447196,685,050162,753,00024,232,0002,117,632
4Jun 21, 2026 00:456,449196,353,525162,665,00024,358,0002,117,632
5Jun 21, 2026 00:456,449196,728,159162,683,00024,349,0002,117,632
6Jun 21, 2026 00:456,450196,897,878162,612,00024,463,0002,117,632
7Jun 21, 2026 00:456,454196,379,128162,754,00024,412,0002,113,536
8Jun 21, 2026 00:456,461197,096,331162,745,00024,637,0002,117,632
9Jun 21, 2026 00:456,466196,866,841163,003,00024,531,0002,117,632