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 18:31Andrew EpsteinAndrew EpsteinScore: 36,630Success
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 18:3236,6201,070,760,7181,060,884,0001,115,0002,121,728stderr
2Sep 13, 2026 18:3236,6221,072,178,2071,060,974,0001,091,0002,121,728stderr
3Sep 13, 2026 18:3236,6261,071,709,6151,061,065,0001,110,0002,121,728stderr
4Sep 13, 2026 18:3236,6301,070,930,0611,061,243,0001,031,0002,121,728stderr
5Sep 13, 2026 18:3236,6301,071,030,0691,061,214,0001,073,0002,121,728stderr
6Sep 13, 2026 18:3236,6361,071,298,5681,061,365,0001,100,0002,121,728stderr
7Sep 13, 2026 18:3236,6401,072,189,8501,061,529,0001,049,0002,121,728stderr
8Sep 13, 2026 18:3236,6521,071,734,3961,061,862,0001,068,0002,121,728stderr
9Sep 13, 2026 18:3236,6561,071,655,6701,061,934,0001,100,0002,121,728stderr