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 15:15A_ShamanA_ShamanScore: 6,613Success
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 15:166,610201,461,273185,304,0006,404,0002,113,536
2Jun 20, 2026 15:166,611202,303,005185,317,0006,430,0002,113,536
3Jun 20, 2026 15:166,611201,043,298185,377,0006,366,0002,113,536
4Jun 20, 2026 15:166,611201,443,846185,383,0006,344,0002,113,536
5Jun 20, 2026 15:166,613201,080,184185,380,0006,409,0002,113,536
6Jun 20, 2026 15:166,615201,499,827185,508,0006,353,0002,113,536
7Jun 20, 2026 15:166,616201,517,156185,461,0006,419,0002,113,536
8Jun 20, 2026 15:166,617201,603,539185,441,0006,454,0002,113,536
9Jun 20, 2026 15:166,658202,719,484186,659,0006,442,0002,113,536