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:34A_ShamanA_ShamanScore: 7,143Success
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:347,120216,343,636182,629,00023,862,0002,117,632
2Jun 21, 2026 00:347,122216,233,371182,973,00023,587,0002,117,632
3Jun 21, 2026 00:347,128216,081,188183,434,00023,294,0002,113,536
4Jun 21, 2026 00:347,133216,382,795182,873,00024,011,0002,113,536
5Jun 21, 2026 00:347,143216,340,671183,134,00024,025,0002,113,536
6Jun 21, 2026 00:347,143216,789,182183,000,00024,150,0002,113,536
7Jun 21, 2026 00:347,149217,024,652183,020,00024,313,0002,113,536
8Jun 21, 2026 00:347,168217,179,865183,121,00024,777,0002,113,536
9Jun 21, 2026 00:347,177217,366,499183,513,00024,632,0002,113,536