#include <iostream> #include <vector> #include <set> #include <string> #include <utility> #include <algorithm> using namespace std; int main() { int n; cin >> n; vector<int> data(n); for (int i = 0; i < n; i++) { cin >> data[i]; } if (data[1] == 4) cout << "TAK" << endl; else cout << "NIE" << endl; return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include <iostream> #include <vector> #include <set> #include <string> #include <utility> #include <algorithm> using namespace std; int main() { int n; cin >> n; vector<int> data(n); for (int i = 0; i < n; i++) { cin >> data[i]; } if (data[1] == 4) cout << "TAK" << endl; else cout << "NIE" << endl; return 0; } |