2 条题解

  • 0
    @ 2023-7-14 22:14:44
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b;
    	char n;
    	cin>>n>>a>>b;
    	switch(n){
    		case '-': cout<<a-b; break;
    		case '+': cout<<a+b; break;
    		case '*': cout<<a*b; break;
    	}
    	return 0;
    }
    
    • 0
      @ 2023-6-10 11:13:47

      image

      • 1

      信息

      ID
      640
      时间
      1000ms
      内存
      256MiB
      难度
      2
      标签
      (无)
      递交数
      40
      已通过
      25
      上传者