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 listAug 14, 2026 12:23marko1597marko1597Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 11:13Tomislav Tunkovic70.84CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 11:13026,783,34115,643,0001,156,00016,384No answer to stdout. Died or killed?
2Aug 14, 2026 12:252,97996,410,41683,971,0002,443,0002,113,536
3Aug 14, 2026 12:252,97996,385,36483,956,0002,446,0002,113,536
4Aug 14, 2026 12:252,98096,500,35483,977,0002,449,0002,113,536
5Aug 14, 2026 12:252,98096,511,61584,000,0002,440,0002,113,536
6Aug 14, 2026 12:252,98196,513,43584,036,0002,441,0002,113,536
7Aug 14, 2026 12:252,98296,498,31384,028,0002,465,0002,113,536
8Aug 14, 2026 12:252,98296,469,46884,030,0002,450,0002,113,536
9Aug 14, 2026 12:252,98697,401,29584,053,0002,553,0002,113,536
10Aug 14, 2026 12:252,98797,492,57083,978,0002,665,0002,113,536