Advertisement
senb1

krsu 7488 (40 points)

Feb 27th, 2023
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. /*
  2. by: ! senb1
  3. */
  4.  
  5. #include <bits/stdc++.h>
  6.  
  7. #define ll long long
  8. #define all(x) x.begin(), x.end()
  9. #define rall(x) x.rbegin(), x.rend()
  10. #define endl '\n'
  11.  
  12. using namespace std;
  13.  
  14. const int maxn = 256;
  15.  
  16. void solve() {
  17.     int y1, z1, y2, z2, x3, y3, z3;
  18.     cin >> y1 >> z1 >> y2 >> z2 >> x3 >> y3 >> z3;
  19.     if (((y2 == 0 and z2 == 0) or (y1 == 0 and z1 == 0)) and x3 == 0) {
  20.         cout << 'I' << endl;
  21.         return;
  22.     }
  23.     if ((y2 == 0 and z2 == 0) or (y1 == 0 and z1 == 0)) {
  24.         cout << 'V' << endl;
  25.         return;
  26.     }
  27.     if ((y1 == 0 and y2 == 0) or (z1 == 0 and z2 == 0) or
  28.         (z1 == -z2 and y1 == -y2)) {
  29.         cout << 'T' << endl;
  30.         return;
  31.     }
  32.     if (x3 == 0) {
  33.         cout << "X" << endl;
  34.         return;
  35.     }
  36.  
  37.     cout << 'B' << endl;
  38. }
  39. /*
  40. 1000 1000 0 0 8 8 8
  41. */
  42.  
  43. int main() {
  44.     int t = 1;
  45.     // cin >> t;
  46.     while (t--) {
  47.         solve();
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement