提交时间:2021-06-05 19:08:05

运行 ID: 20210

#include<iostream> #include<cstdio> using namespace std; int main() { int a,b; char ch; cin>>a; while(cin>>ch){ cin>>b; switch(ch){ case '+':a+=b;break; case '-':a-=b;break; case '*':a*=b; } } cout<<a; return 0; }