Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include<iostream>
- #include<set>
- #include<vector>
- #include<algorithm>
- #include<set>
- #include<stdio.h>
- #include<vector>
- #include<algorithm>
- #include<set>
- #include<string>
- #include<map>
- #include<stdlib.h>
- #include<string.h>
- #include<string>
- #include<queue>
- using namespace std;
- int A[201];
- bool B[201];
- bool C[101][201];
- int main()
- {
- int a;
- cin >> a;
- int l = 2;
- int f = 1;
- int g;
- for (int i = 1; i <= a; i++)
- {
- C[0][i] = i;
- }
- if (a % 2 == 1)
- {
- cout << 1 << " "<< (a + 1) / 2;
- cout.flush();
- for (int i = 1; i <= (a + 1) / 2; i++)
- {
- cin >> g;
- B[g] = 1;
- }
- int r = a - 1;
- while (l <= r)
- {
- cout << l <<" "<< r;
- cout.flush();
- for (int i = 1; i <= r - l+1; i++)
- {
- cin >> g;
- C[f][g] = 1;
- }
- f++;
- l++;
- r--;
- }
- }
- if (a % 2 == 0)
- {
- cout << 1 << " " << a / 2;
- cout.flush();
- for (int i = 1; i <= a / 2; i++)
- {
- cin >> B[i];
- }
- int r = a - 2;
- while (l <= r)
- {
- cout << l << " " << r;
- cout.flush();
- for (int i = 1; i <= r - l + 1; i++)
- {
- cin >> g;
- C[f][g] = 1;
- }
- f++;
- l++;
- r--;
- }
- }
- for (int i = 1; i <= f; i++)
- {
- for (int v = 1; v <= f - i; v++)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement