#include <random> #include <iostream> #include <time.h> using namespace std; int main() { srand(time(NULL)); int a = rand(); if(a%2) cout<<"TAK"<<'\n'; else cout<<"NIE"<<'\n'; return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <random> #include <iostream> #include <time.h> using namespace std; int main() { srand(time(NULL)); int a = rand(); if(a%2) cout<<"TAK"<<'\n'; else cout<<"NIE"<<'\n'; return 0; } |