int mode; int i,j; int field[10][10]; { rd(mode); rep(i,10) rep(j,10) field[i][j]=j; field[0..7][1..7] = field[0..7][1..7] + field[0..7][0..]; field[1..7][7] = field[1..7][7] + field[0..][7]; assert(mode!=1|| field[7][7] >= 550); assert(mode!=2|| field[7][7] <= 550); assert(mode!=3|| field[7][7] >= 110); assert(mode!=4|| field[7][7] <= 110); assert(mode!=5|| field[7][7] <= 10); }