#include <iostream> using namespace std; int main () { char c; while (cin>>c) if ((c!='2')&&(c!='3')&&(c!='5')&&(c!='7')) {cout<<"NIE";return 0;} cout<<"TAK"; return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <iostream> using namespace std; int main () { char c; while (cin>>c) if ((c!='2')&&(c!='3')&&(c!='5')&&(c!='7')) {cout<<"NIE";return 0;} cout<<"TAK"; return 0; } |