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 22, 2024 22:42HighloadGPTO1HighloadGPTO1Score: 13,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 22:4213,525414,969,969392,233,00002,433,024
2Dec 22, 2024 22:4213,525414,209,323392,236,00002,506,752
3Dec 22, 2024 22:4213,528412,719,298391,300,0001,000,0002,355,200
4Dec 22, 2024 22:4213,529414,848,941390,340,0002,001,0002,506,752
5Dec 22, 2024 22:4213,531422,734,623390,402,0001,996,0002,347,008
6Dec 22, 2024 22:4213,541416,906,820390,695,0001,998,0002,351,104
7Dec 22, 2024 22:4213,548416,831,599388,887,0003,998,0002,465,792
8Dec 22, 2024 22:4213,649423,792,376393,811,0001,999,0002,527,232
9Dec 22, 2024 22:4213,652431,621,558391,900,0003,998,0002,502,656