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 listNov 29, 2025 23:03Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:41C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 15:4109,043,914776,000020,480No answer to stdout. Died or killed?
2Nov 29, 2025 23:014,790159,737,038137,898,000999,0002,527,232
3Nov 29, 2025 22:584,793159,054,661137,985,000999,0002,420,736
4Nov 29, 2025 23:014,793164,142,841136,991,0001,999,0002,424,832
5Nov 29, 2025 22:584,794160,362,283138,032,0001,000,0002,420,736
6Nov 29, 2025 23:014,795159,399,980138,042,0001,000,0002,424,832
7Nov 29, 2025 22:584,796166,326,339138,080,0001,000,0002,420,736
8Nov 29, 2025 23:034,796169,491,416139,090,00002,428,928
9Nov 29, 2025 23:034,799166,558,962138,172,0001,001,0002,527,232
10Nov 29, 2025 23:034,800163,785,381139,195,00002,424,832