| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146028 | 潘明泽 | 09计算算数表达式 | C++ | Accepted | 0 MS | 272 KB | 468 | 2026-01-25 20:19:47 |
#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 a,b; char x; int main(){ cin>>a>>x>>b; if(x=='+'){ cout<<a+b; }else if(x=='-'){ cout<<a-b; }else if(x=='*'){ cout<<a*b; }else{ cout<<a/b; } return 0; }