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 22, 2026 01:26olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 07:41Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 07:41032,055,33222,028,000024,576Exit with code 101: thread 'main' (1) panicked at main.rs:215:56: attempt to divide by zero note: run with `RUST_BACKTRACE=1` environment variable to display a backtracestderr
2Apr 22, 2026 01:273,741130,148,052107,488,0001,004,0002,326,528
3Apr 22, 2026 01:273,743130,444,158107,546,0001,005,0002,326,528
4Apr 22, 2026 01:273,744128,634,781107,592,0001,005,0002,334,720
5Apr 22, 2026 01:273,745129,824,616107,617,0001,005,0002,342,912
6Apr 22, 2026 01:273,746128,194,062107,646,0001,006,0002,326,528
7Apr 22, 2026 01:273,746125,528,896107,654,0001,006,0002,330,624
8Apr 22, 2026 01:273,747123,018,922107,657,0001,006,0002,342,912
9Apr 22, 2026 01:273,751126,298,280107,799,0001,007,0002,326,528
10Apr 22, 2026 01:273,753128,695,314106,843,0001,997,0002,326,528