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 25, 2026 15:44Kevin HeaveyKevin HeaveyScore: 1,783Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 15:441,78261,127,95751,696,000020,480
2Sep 25, 2026 15:441,78261,125,78851,690,000020,480
3Sep 25, 2026 15:441,78261,164,41351,686,000020,480
4Sep 25, 2026 15:441,78361,149,04551,718,000020,480
5Sep 25, 2026 15:441,78360,484,83651,707,000020,480
6Sep 25, 2026 15:441,78360,485,61651,715,000020,480
7Sep 25, 2026 15:441,78560,517,48951,770,000020,480
8Sep 25, 2026 15:441,78660,590,59551,798,000020,480
9Sep 25, 2026 15:441,78960,736,90251,905,000020,480