#include <malloc.h> #include <cstdio> //<n true; bool distance(int left, int right, int length, int n) { bool flag = false; if((right-left)<=n || (left+length-right)<=n) flag = true; return flag; } int main() { int m, n, c; scanf("%d%d%d",&m,&n,&c); int*...