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 listSep 13, 2026 19:34Andrew EpsteinAndrew EpsteinScore: 33,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2026 19:3433,759988,085,516977,981,0001,049,0002,121,728stderr
2Sep 13, 2026 19:3433,763988,166,911978,142,0001,005,0002,121,728stderr
3Sep 13, 2026 19:3433,765987,951,067978,114,0001,089,0002,121,728stderr
4Sep 13, 2026 19:3433,765988,111,423978,150,0001,042,0002,121,728stderr
5Sep 13, 2026 19:3433,769988,222,574978,063,0001,249,0002,121,728stderr
6Sep 13, 2026 19:3433,769988,085,223978,282,0001,039,0002,121,728stderr
7Sep 13, 2026 19:3433,772988,204,604978,328,0001,079,0002,121,728stderr
8Sep 13, 2026 19:3433,780988,579,682978,370,0001,252,0002,121,728stderr
9Sep 13, 2026 19:3433,790988,733,597978,890,0001,024,0002,121,728stderr