Please in order to save solutions and appear on the leaderboards.

Reverse Polish Notation

Details

RPN (Reverse Polish notation) is a way of writing expressions such that operators are written after their operands: 3 2 + rather than (3+2).

Each argument is an RPN expression, given as a space-separated list of tokens: either a number 032767 or an operator (addition +, subtraction -, multiplication * or integer division /).

Evaluate and print the result of each expression on its own line.

The result of each operation is a non-negative integer not exceeding 32,767. Division is guaranteed to have an exact integer result.

0 bytes, 0 chars
Restore solution
All
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
TeX is an experimental language, no solutions will be saved. Please leave feedback on the GitHub issue.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Reverse Polish Notation?

If you have seperate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.