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 listFeb 2, 2025 19:08HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 7,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 2, 2025 19:087,049230,115,806204,431,00002,527,232
2Feb 2, 2025 19:087,054233,195,780204,574,00002,408,448
3Feb 2, 2025 19:087,055229,259,204203,592,000998,0002,523,136
4Feb 2, 2025 19:087,056236,821,306204,621,00002,420,736
5Feb 2, 2025 19:087,056232,080,712204,637,00002,523,136
6Feb 2, 2025 19:087,062236,707,024203,786,000998,0002,527,232
7Feb 2, 2025 19:087,081226,709,084205,354,00002,490,368
8Feb 2, 2025 19:087,082226,574,392205,372,00002,510,848
9Feb 2, 2025 19:087,083231,100,865204,409,0001,002,0002,420,736