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 25, 2026 01:09Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:08Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:08050,949,95039,895,0001,011,00016,384No answer to stdout. Died or killed?
2Apr 25, 2026 01:093,793125,192,076108,005,0002,000,0002,514,944
3Apr 25, 2026 01:093,793129,003,688106,998,0002,999,0002,318,336
4Apr 25, 2026 01:093,796125,715,412108,086,0002,001,0002,510,848
5Apr 25, 2026 01:093,798129,370,543109,145,0001,001,0002,527,232
6Apr 25, 2026 01:093,800127,867,390107,195,0003,005,0002,510,848
7Apr 25, 2026 01:093,800130,724,090108,198,0002,003,0002,502,656
8Apr 25, 2026 01:093,801128,290,225107,226,0003,006,0002,523,136
9Apr 25, 2026 01:093,801126,896,921107,248,0003,006,0002,519,040
10Apr 25, 2026 01:093,805129,746,698109,365,0001,003,0002,338,816