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 5, 2025 11:53KeefeKeefeScore: 7,304Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2025 11:537,298238,224,393210,647,0001,003,0002,289,664
2Feb 5, 2025 11:537,303240,794,468210,785,000998,0002,281,472
3Feb 5, 2025 11:537,303243,103,912209,792,0001,998,0002,482,176
4Feb 5, 2025 11:537,303244,790,940209,800,0001,998,0002,281,472
5Feb 5, 2025 11:537,304242,719,308209,828,0001,998,0002,478,080
6Feb 5, 2025 11:537,306236,476,605208,871,0002,998,0002,281,472
7Feb 5, 2025 11:537,314236,196,288211,108,0001,000,0002,482,176
8Feb 5, 2025 11:537,315236,120,059209,133,0003,001,0002,269,184
9Feb 5, 2025 11:537,336239,074,309209,755,0002,996,0002,482,176