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:44HighloadGPTO1HighloadGPTO1Score: 13,528Success
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:4413,515425,473,665388,948,0002,999,0002,347,008
2Dec 22, 2024 22:4413,522411,926,352391,144,0001,000,0002,342,912
3Dec 22, 2024 22:4413,523415,299,413391,161,0001,000,0002,277,376
4Dec 22, 2024 22:4413,523413,270,442390,163,0002,000,0002,498,560
5Dec 22, 2024 22:4413,528415,230,697389,312,0003,002,0002,334,720
6Dec 22, 2024 22:4413,528417,547,749390,320,0002,001,0002,347,008
7Dec 22, 2024 22:4413,547418,586,998390,850,0001,999,0002,342,912
8Dec 22, 2024 22:4413,547423,460,120388,859,0003,998,0002,433,024
9Dec 22, 2024 22:4413,555415,667,596389,095,0004,000,0002,342,912