Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2635 | 莫业祁 | 09计算算数表达式 | C++ | Accepted | 0 MS | 268 KB | 286 | 2024-01-20 13:21:25 |
# include<iostream> using namespace std; int main(){ int a,b; char op; cin>>a>>op>>b; if(op==43) cout<<a+b<<endl; if(op==45) cout<<a-b<<endl; if(op==42) cout<<a*b<<endl; if(op==47) cout<<a/b<<endl; return 0; }