Codeforces Round #408 (Div. 2), problem: (B) Find The Bone Solution in C

By |2017-04-11T10:11:58+00:00April 11th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <stdio.h> #define N 1000000 int main() { static int hole[N]; int n, m, k, i, j; scanf("%d%d%d", &n, &m, &k); for (j = 0; j < m; j++) { scanf("%d", &i); i--; hole[i] = 1; } i = 0; while (k-- > 0) [...]