star sky 1//http://codeforces.com/contest/835/problem/C2#include <cstdio>3#include <cstring>4constintM =12, N =102;5intpre[M][N][N];6intmain()7{8intn, q, c;9while(~scanf("%d%d%d", &n, &q, &c)) {10memset(pre,0,sizeofpre);11c++;12intx, y, s;13while(n--) {1...