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 20, 2026 09:53A_ShamanA_ShamanScore: 5,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 09:545,754175,929,282144,055,00022,825,0002,113,536
2Jun 20, 2026 09:545,770176,808,001144,315,00023,019,0002,113,536
3Jun 20, 2026 09:545,781176,700,708144,300,00023,370,0002,113,536
4Jun 20, 2026 09:545,788176,924,520144,526,00023,348,0002,113,536
5Jun 20, 2026 09:545,788176,993,727144,665,00023,206,0002,113,536
6Jun 20, 2026 09:545,792177,047,310144,353,00023,637,0002,113,536
7Jun 20, 2026 09:545,798178,378,475144,414,00023,740,0002,113,536
8Jun 20, 2026 09:545,799177,716,863144,495,00023,702,0002,113,536
9Jun 20, 2026 09:545,809177,998,754144,534,00023,944,0002,113,536