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 28, 2026 19:43Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:38Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 15:38050,787,75539,607,0001,011,00016,384No answer to stdout. Died or killed?
2Apr 28, 2026 19:433,673126,085,665104,535,0002,010,0002,514,944
3Apr 28, 2026 19:433,673126,533,258104,528,0002,010,0002,519,040
4Apr 28, 2026 19:433,674127,180,054104,542,0002,010,0002,523,136
5Apr 28, 2026 19:433,675123,833,366105,571,0001,005,0002,338,816
6Apr 28, 2026 19:433,676124,983,827104,593,0002,011,0002,514,944
7Apr 28, 2026 19:433,679126,778,093104,680,0002,013,0002,338,816
8Apr 28, 2026 19:433,679127,458,843104,683,0002,013,0002,510,848
9Apr 28, 2026 19:433,679124,394,654105,691,0001,006,0002,523,136
10Apr 28, 2026 19:433,680121,640,943104,736,0001,994,0002,514,944