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:06HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 7,801Success
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:067,773249,551,310224,418,0001,001,0002,412,544
2Feb 2, 2025 19:067,774244,872,512225,432,00002,519,040
3Feb 2, 2025 19:067,780253,709,123225,608,00002,527,232
4Feb 2, 2025 19:067,785249,168,097224,772,000998,0002,531,328
5Feb 2, 2025 19:067,801246,058,553226,233,00002,498,560
6Feb 2, 2025 19:067,802245,609,188226,257,00002,412,544
7Feb 2, 2025 19:067,802253,716,332225,267,0001,001,0002,523,136
8Feb 2, 2025 19:067,805247,222,391225,350,0001,001,0002,519,040
9Feb 2, 2025 19:067,807254,240,200225,414,000997,0002,412,544