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 18, 2025 21:31Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 13:05C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 13:0909,033,656871,000020,480No answer to stdout. Died or killed?
2Nov 18, 2025 21:314,781165,099,531138,646,00002,277,376
3Nov 18, 2025 21:314,782170,164,584137,660,0001,004,0002,424,832
4Nov 18, 2025 21:314,783163,802,662138,698,00002,424,832
5Nov 18, 2025 21:314,783162,819,390137,717,000997,0002,277,376
6Nov 18, 2025 21:314,787163,454,990136,816,0001,997,0002,539,520
7Nov 18, 2025 21:314,787170,449,417137,839,000998,0002,277,376
8Nov 18, 2025 21:314,791165,395,343137,928,000999,0002,424,832
9Nov 18, 2025 21:314,791160,915,795138,949,00002,277,376
10Nov 18, 2025 21:314,814171,651,155138,606,0001,004,0002,539,520