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 15, 2025 22:37Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:43C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:4609,065,879815,000020,480No answer to stdout. Died or killed?
2Aug 15, 2025 22:375,225176,748,564150,533,0001,003,0002,539,520
3Aug 15, 2025 22:375,226178,378,805150,553,000997,0002,428,928
4Aug 15, 2025 22:375,226174,116,216150,555,0001,003,0002,433,024
5Aug 15, 2025 22:375,227177,696,333151,582,00002,539,520
6Aug 15, 2025 22:375,235178,680,317149,823,0001,997,0002,433,024
7Aug 15, 2025 22:375,236173,336,234150,842,000998,0002,539,520
8Aug 15, 2025 22:375,238176,177,186150,915,000999,0002,433,024
9Aug 15, 2025 22:375,243174,816,796152,034,00002,539,520
10Aug 15, 2025 22:375,244173,653,859151,089,0001,000,0002,428,928