#include <stdio.h> #include <stack> #include <string> #include <map> #include <string.h> using namespace std; int main() { char str[200]; map<char, int> priority = { {'\0', 0}, {'+', 1}, {'-', 1}, {'*', 2}, {'/', 2}, }; while (fgets(str, 200, stdin)) { // 移除末尾的换行符...