Untitled
unknown
c_cpp
18 days ago
730 B
4
Indexable
Never
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int using namespace std; void solve() { int n; cin >> n; bool flag = true; int rule[5] = {2, 2, 2, 1, 3}; for (int d = 0; d < n; d++) { for (int i = 0; i < 5; i++) { int m, q, r; cin >> m >> q >> r; if (m != rule[i] || q != 3 || r != 10) { flag = false; } } } if (flag == true) cout << "Consistent\n"; else cout << "Inconsistent\n"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll tc; cin >> tc; while (tc--) { solve(); } return 0; }
Leave a Comment