Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112244 | 唐俊逸 | 09计算算数表达式 | C++ | Wrong Answer | 1 MS | 268 KB | 491 | 2025-03-08 19:03:24 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,op,b; cin>>a>>b; switch(op){ case '+':cout<<a+b<<endl;break; case '-':cout<<a-b<<endl;break; case '*':cout<<a*b<<endl;break; case '/':cout<<a/b<<endl;break; } return 0; }
------Input------
100 / 10
------Answer-----
10
------Your output-----