| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 88364 | sh25_wuyy | 简单算术表达式求值 | C++ | Accepted | 1 MS | 244 KB | 358 | 2026-05-10 19:19:21 |
#include<iostream> using namespace std; int main(){ int a,b; char op; cin>>a>>op>>b; int res; switch(op){ case'+':res=a+b;break; case'-':res=a-b;break; case'*':res=a*b;break; case'/':res=a/b;break; case'%':res=a%b;break; default:res=0; }cout<<res<<endl; return 0; }