#include <iostream> #include <random> #include <stdlib.h> #include <time.h> int main() { int n, m; scanf("%d %d", &n, &m); for (int i = 0; i < n; ++i) { int l1, l2, l3; scanf("%d%d%d", &l1, &l2, &l3); } if (m >= n) { printf("TAK\n"); return 0; } srand(time(NULL)); printf("%s\n", rand()%2 ? "TAK" : "NIE"); }
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 <random> #include <stdlib.h> #include <time.h> int main() { int n, m; scanf("%d %d", &n, &m); for (int i = 0; i < n; ++i) { int l1, l2, l3; scanf("%d%d%d", &l1, &l2, &l3); } if (m >= n) { printf("TAK\n"); return 0; } srand(time(NULL)); printf("%s\n", rand()%2 ? "TAK" : "NIE"); } |