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 listDec 12, 2024 20:10Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 27, 2024 16:0300000Testing system error
2Nov 27, 2024 16:0500000Testing system error
3Dec 12, 2024 20:0400000Testing system error
4Dec 12, 2024 20:0600000Testing system error
5Dec 12, 2024 20:1000000Testing system error
6Dec 12, 2024 20:1000000Testing system error
7Dec 12, 2024 20:106,695215,192,896194,157,00002,539,520
8Dec 12, 2024 20:106,696215,103,183192,181,0002,001,0002,269,184
9Dec 12, 2024 20:106,696219,144,645193,192,0001,000,0002,441,216
10Dec 12, 2024 20:106,697215,262,861193,203,0001,001,0002,433,024
11Dec 12, 2024 20:106,697221,299,762194,219,00002,437,120
12Dec 12, 2024 20:106,697218,873,786194,220,00002,539,520
13Dec 12, 2024 20:106,697220,586,133194,227,00002,269,184
14Dec 12, 2024 20:106,699217,165,343193,284,0001,001,0002,437,120
15Dec 12, 2024 20:106,702213,936,857194,356,00002,514,944