Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2633 莫业祁 09计算算数表达式 C++ Wrong Answer 0 MS 256 KB 282 2024-01-20 13:15:38

Tests(0/5):


Code:

# 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; }


Run Info:

------Input------
1 + 6
------Answer-----
7
------Your output-----
7 -5 6 0