Untitled
swarup
plain_text
19 days ago
1.6 kB
4
Indexable
Never
#include<bits/stdc++.h> using namespace std; #define ll long long #define test cout<<"ok"<<endl; #define check(n) for(auto x:n)cout<<x<<" " // p.push_back(make_pair(a,b)); // pr.push_back({1,3}); //factor and divisor are same which is limited & multiple are unlimited #define debug(x) cout << #x <<" " << x << endl; #define Faster ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define MX 1000000+7 vector < bool > is_prime(MX+ 1, true); /*is_prime[0] = false; is_prime[1] = true; for(int i = 2; i<= MX; i++){ if(is_prime[i] == true && i * i <= MX) { for(int j = i * i ; j <= MX ;j+= i) { is_prime[j] = false; } } }*/ void solve(){ ll n; cin >> n; bool ans = true; for(int i = 0; i < 5; i++){ ll m,q,r; cin >> m >> q >> r; if(i < 3){ if(m == 2 && q == 3 && r == 10) { } else ans = false; } else if(i == 3){ if(m == 1 && q == 3 && r == 10) { } else ans = false; } else { if(m == 3 && q == 3 && r == 10) { } else ans = false; } } if(ans) cout << "Consistent" << endl; else cout << "Inconsistent" << endl; } int main(){ Faster; int t; cin >> t; while(t --){ solve(); } }
Leave a Comment