Codeforces Round #385 (Div. 2), problem: (D) Hongcow’s Game Solution in C/C++

By | 2017-04-07T22:11:47+00:00 December 18th, 2016|Categories: C/C++, Programming|Tags: , , , , , , |

#include <limits.h> #include <stdio.h> #define N 1000 void query(int *ww, int *aa, int k, int n) { int i; printf("%d\n", k); for (i = 0; i < k; i++) printf("%d ", ww[i]); printf("\n"); fflush(stdout); for (i = 1; i <= n; i++) scanf("%d", &aa[i]); [...]