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 listJul 25, 2025 23:06KeefeKeefeScore: 6,993Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2025 23:066,991229,376,135200,742,0001,997,0002,396,160
2Jul 25, 2025 23:066,993228,513,662199,787,0002,996,0002,277,376
3Jul 25, 2025 23:066,993232,180,965199,791,0002,996,0002,285,568
4Jul 25, 2025 23:066,993234,694,981200,791,0001,997,0002,285,568
5Jul 25, 2025 23:066,993227,981,740199,796,0002,996,0002,383,872
6Jul 25, 2025 23:066,993232,574,648200,807,0001,998,0002,277,376
7Jul 25, 2025 23:066,993230,045,577199,811,0002,997,0002,277,376
8Jul 25, 2025 23:066,994229,970,973201,833,000999,0002,400,256
9Jul 25, 2025 23:066,997228,074,024199,908,0002,998,0002,396,160