Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- typedef long double ld;
- int main(){
- cin.sync_with_stdio(false);
- cout.sync_with_stdio(false);
- ll a, b, c;
- cin >> a >> b;
- cout << a+b << endl;
- cout << a*b << endl;
- if (b==0)
- cout << "Na nol' delit' nel'zya!!!" << endl;
- else{
- cout << (a%b==0|a>0?a/b:b>0?a/b-1:a/b+1) << endl;
- cout << (a-b*(a%b==0|a>0?a/b:b>0?a/b-1:a/b+1))%b << endl;
- cout << (((a-b*(a%b==0|a>0?a/b:b>0?a/b-1:a/b+1))%b)+(a%b==0|a>0?a/b:b>0?a/b-1:a/b+1)*b==a);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment