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:05Andrew EpsteinAndrew EpsteinScore: 41,936Success
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:0641,9291,224,863,6681,214,932,0001,028,0002,121,728stderr
2Sep 13, 2026 19:0641,9331,225,042,4571,214,811,0001,274,0002,121,728stderr
3Sep 13, 2026 19:0641,9351,225,773,8341,214,920,0001,222,0002,121,728stderr
4Sep 13, 2026 19:0641,9361,226,030,2361,215,042,0001,121,0002,121,728stderr
5Sep 13, 2026 19:0641,9361,225,056,0181,215,061,0001,108,0002,121,728stderr
6Sep 13, 2026 19:0641,9451,225,430,7771,215,406,0001,005,0002,121,728stderr
7Sep 13, 2026 19:0641,9481,225,533,6431,215,398,0001,116,0002,121,728stderr
8Sep 13, 2026 19:0641,9481,225,493,5681,215,397,0001,103,0002,121,728stderr
9Sep 13, 2026 19:0641,9521,233,516,8191,215,424,0001,192,0002,121,728stderr