Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
88364 sh25_wuyy 简单算术表达式求值 C++ 通过 1 MS 244 KB 358 2026-05-10 19:19:21

Tests(1/1):


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


测评信息: