#include <iostream> #include <algorithm> #include <stack> #include <string> #include <cstdio> #include <map> using namespace std; //KY129 int main() { char buf[400]; //用map来存储运算符的优先级 map<char, int> priority = { {'$', 0}, {'+', 1...