Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24381 | 老方 | 两个数字做运算 | C++ | Accepted | 0 MS | 244 KB | 182 | 2023-08-11 15:02:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<a-b; }else if(a==b){ cout<<a*b; } else{ cout<<a+b; } return 0; }