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 listApr 10, 2026 09:58limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 17:06Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 17:06077,171,45254,112,0001,148,0002,113,536line 0: expected 32767 got 2895577246950434858
2Sep 8, 2026 17:06075,835,13554,130,0001,132,0002,117,632line 0: expected 32767 got 2895577246950434858
3Sep 8, 2026 17:06076,171,96153,527,0001,135,0002,113,536line 0: expected 32767 got 2895577246950434858
4Apr 10, 2026 09:587,037230,483,304202,072,0002,000,0002,293,760
5Apr 10, 2026 09:587,038226,744,143202,090,0002,000,0002,359,296
6Apr 10, 2026 09:587,040226,560,622203,174,0001,000,0002,355,200
7Apr 10, 2026 09:587,041227,779,635202,179,0002,001,0002,453,504
8Apr 10, 2026 09:587,043227,443,384202,244,0002,002,0002,347,008
9Apr 10, 2026 09:587,043226,945,223202,252,0002,002,0002,293,760
10Apr 10, 2026 09:587,045229,630,117202,293,0002,002,0002,453,504
11Apr 10, 2026 09:587,063232,367,606201,825,0002,997,0002,293,760
12Apr 10, 2026 09:587,067227,278,294202,954,0001,999,0002,293,760