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 10, 2026 14:51Andrew EpsteinAndrew EpsteinScore: 6,922Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 14:526,914210,689,588199,487,0001,030,0002,117,632stderr
2Sep 10, 2026 14:526,916211,118,037199,557,0001,027,0002,117,632stderr
3Sep 10, 2026 14:526,921211,077,972199,717,0001,017,0002,117,632stderr
4Sep 10, 2026 14:526,922210,927,751199,762,0001,001,0002,117,632stderr
5Sep 10, 2026 14:526,922210,954,444199,715,0001,032,0002,117,632stderr
6Sep 10, 2026 14:526,923211,057,938199,771,0001,022,0002,117,632stderr
7Sep 10, 2026 14:526,929211,945,451199,929,0001,027,0002,117,632stderr
8Sep 10, 2026 14:526,930211,921,009199,972,0001,002,0002,117,632stderr
9Sep 10, 2026 14:526,931213,338,889199,991,0001,016,0002,117,632stderr