题解 | #简单运算#
简单运算
https://www.nowcoder.com/practice/23c9b22d40fa4d7698a1306fb0c9f975
#include <iostream> using namespace std; #include <bits/stdc++.h> int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); int a,b; cin>>a>>b; if(a>b) { cout<<a+b<<" "<<a-b<<" "<<a*b<<" "<<a/b<<" "<<a%b<<"\n"; } else { cout<<a+b<<" "<<b-a<<" "<<a*b<<" "<<b/a<<" "<<b%a<<"\n"; } return 0; }