Codeforces Round #427 (Div. 2), problem: (E) The penguin’s game Solution In C/C++

By | 2017-08-05T21:44:16+00:00 August 5th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=1010; int n,x,y,bit,ans; int cnta,cntb; int a[N],b[N]; int ans1,ans2; int gao(int *a,int l,int r){ if (r-l+1==0) return 0; printf("? %d ",r-l+1); for (int i=l;i<=r;i++) printf("%d ",a[i]); printf("\n"); fflush(stdout); int res; scanf("%d",&res); return res; } int find(int [...]