Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2634 | 莫业祁 | 09计算算数表达式 | C++ | Wrong Answer | 0 MS | 260 KB | 283 | 2024-01-20 13:20:50 |
# 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; }
------Input------
1 + 6
------Answer-----
7
------Your output-----
7 -5 6 0