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: 14,488Success
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:4214,443448,342,399414,861,0003,998,0002,342,912
2Dec 22, 2024 22:4214,449449,750,410417,008,0002,000,0002,486,272
3Dec 22, 2024 22:4214,449442,686,680416,031,0003,000,0002,351,104
4Dec 22, 2024 22:4214,477449,590,613417,837,0001,999,0002,347,008
5Dec 22, 2024 22:4214,488445,837,104417,158,0003,001,0002,490,368
6Dec 22, 2024 22:4214,492441,867,409419,274,0001,000,0002,408,448
7Dec 22, 2024 22:4214,499444,667,588420,481,00002,437,120
8Dec 22, 2024 22:4214,508444,200,185416,729,0003,997,0002,347,008
9Dec 22, 2024 22:4214,656454,812,303423,022,0002,000,0002,498,560