提交时间:2021-05-27 22:07:33
运行 ID: 20025
#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; }