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 30, 2026 09:50olliecrowolliecrowScore: 3,845Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 09:503,841128,370,810110,410,0001,003,0002,469,888
2Apr 30, 2026 09:503,841130,041,173110,400,0001,003,0002,334,720
3Apr 30, 2026 09:503,842131,676,497110,420,0001,003,0002,473,984
4Apr 30, 2026 09:503,843125,975,908110,464,0001,004,0002,535,424
5Apr 30, 2026 09:503,845129,949,517110,517,0001,004,0002,334,720
6Apr 30, 2026 09:503,845130,037,643110,525,0001,004,0002,326,528
7Apr 30, 2026 09:503,846130,552,563110,535,0001,004,0002,465,792
8Apr 30, 2026 09:503,847124,546,709110,565,0001,005,0002,473,984
9Apr 30, 2026 09:503,848127,788,632110,588,0001,005,0002,461,696