Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91836 石水生 09计算算数表达式 C++ Wrong Answer 1 MS 276 KB 271 2024-09-22 15:44:52

Tests(2/5):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int a,c; char b; cin>>a>>b>>c; switch (int(b)){ case 43 : cout<<a+c; break; case 45 : cout<<a-c; case 42 : cout<<a*c; break; case 47 : cout<<a/c; break; } }


Run Info:

------Input------
5 - 1
------Answer-----
4
------Your output-----
45