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 18, 2026 15:31Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:13Tomislav Tunkovic11.23CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:13037,080,58726,190,000016,384No answer to stdout. Died or killed?
2Apr 18, 2026 15:315,581188,658,155160,839,000999,0002,289,664
3Apr 18, 2026 15:315,583187,753,555159,896,0001,998,0002,289,664
4Apr 18, 2026 15:315,585193,602,773159,978,0001,999,0002,289,664
5Apr 18, 2026 15:315,592188,435,632160,168,0002,002,0002,465,792
6Apr 18, 2026 15:315,594191,973,864160,235,0002,002,0002,289,664
7Apr 18, 2026 15:315,601184,897,751161,440,0001,002,0002,465,792
8Apr 18, 2026 15:315,602185,778,819161,448,0001,002,0002,289,664
9Apr 18, 2026 15:315,603189,330,823162,494,00002,469,888
10Apr 18, 2026 15:315,605191,269,630160,556,0001,994,0002,289,664