朕在世界之巅 @ 2020-07-12 17:12:06
RT, 3蛙3重可还行,失败记录
```cpp
#include <bits/stdc++.h>
using namespace std;
long simstk[1024];
int main(void) {
int i=0,num=0,ch;
while((ch = getchar())!=64) {
if(ch >= 48 && ch <= 57) num*=10,num+=ch^48;
else if(ch == 49) simstk[++i]=num,num=0;
else {
if(ch == 43) simstk[i-1]+=simstk[i];
else if(ch == 45) simstk[i-1]-=simstk[i];
else if(ch == 42) simstk[i-1]*=simstk[i];
else if(ch == 47) simstk[i-1]/=simstk[i];
simstk[i]=0,i--;
}
}
printf("%ld",simstk[1]);
return 0;
}
```