Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define endl '\n'
- #define fastio ios_base::sync_with_stdio(0); cin.tie(0)
- signed main()
- {
- fastio;
- /*
- int n;
- cin >> n;
- //cout << (n % 2 == 0);
- if(n % 2 == 0)
- cout << 1;
- else
- cout << 0;
- */
- /*
- int a , b;
- cin >> a >> b;
- if(a < b)
- cout << a << " " << b;
- else
- cout << b << " " << a;
- if(a > b)
- swap(a , b);
- cout << a << " " << b << '\n';
- cout << min(a , b) << " " << max(a , b);*/
- /*
- int n , m;
- cin >> n >> m;
- cout << (n % 2 == m % 2);
- if(n % 2 == m % 2)
- cout << 1;
- else
- cout << 0;
- */
- /*
- int n;
- cin >> n;
- if(n > 0)
- cout << "Positive";
- else if(n < 0)
- cout << "Negative";
- else
- cout << "Zero";
- */
- /*
- int a , b;
- cin >> a >> b;
- if(n) // n != 0
- if(a % b) // a % b != 0
- if(a % b)
- cout << a / b << " " << a % b << '\n';
- else
- cout << "Divisible";
- */
- /*
- // G
- int n;
- cin >> n;
- if(n <= 3)
- cout << "Initial";
- else if(n <= 6)
- cout << "Average";
- else if(n <= 9)
- cout << "Sufficient";
- else
- cout << "High";
- */
- /*
- int n , m;
- cin >> n >> m;
- if(n * m > 0)
- cout << 1;
- else
- cout << 0;
- if(n > 0 && m > 0)
- cout << 1;
- else if(n < 0 && m < 0)
- cout << 1;
- else
- cout << 0;
- */
- /*
- int a , b , c;
- a = abs(a) % 2;
- b = abs(b) % 2;
- c = abs(c) % 2;
- if(a == b && b == c)
- cout << "YES";
- else
- cout << "NO";
- */
- /*
- // J
- int a , b , c , d;
- cin >> a >> b >> c >> d;
- cout << max({a , b , c , d});
- if(a >= b && a >= c && a >= d)
- cout << a;
- else if(b >= a && b >= c && b >= d)
- cout << b;
- else if(c >= a && c >= b && c >= d)
- cout << c;
- else
- cout << d;
- */
- /*
- int a , b , c;
- cin >> a >> b >> c;
- if(a == b && b == c)
- cout << 1;
- else if(a == b || b == c || a == c)
- cout << 2;
- else
- cout << 3;
- */
- /*
- int n;
- cin >> n;
- bool first = (n % 2 != 0); // odd
- bool second = (100 <= n && n <= 999); // 100 <= n <= 999
- if(first || second)
- cout << "YES";
- else
- cout << "NO";
- */
- /*
- int n;
- cin >> n;
- if(n % 6 == 0 && 10 <= abs(n) && abs(n) <= 99)
- cout << "YES";
- else
- cout << "NO";
- */
- /*
- int n;
- cin >> n;
- bool first = (n > 0 && n % 2 == 0);
- bool second = (n < 0 && n % 2);
- if(!first && !second)
- cout << "YES";
- else
- cout << "NO";
- */
- /*
- int n;
- cin >> n;
- bool first = (n % 2 == 0);
- bool second = (n < 0 && n % 3 == 0);
- if(first != second)
- cout << "YES";
- else
- cout << "NO";
- */
- /*
- int r , a , b;
- cin >> r >> a >> b;
- int tort = a * a + b * b;
- int masa = 4 * r * r;
- if(tort <= masa)
- cout << "YES";
- else
- cout << "NO";
- */
- // sqrtl(tort) <= masa
- // tort <= masa * masa
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement