<commit_before>#include<stdio.h>
#include<stdlib.h>
#include<queue>
using namespace std;

#define SIZE 1000

int step[4][2] = {{-1,0},{1,0},{0,-1},{0,1}};

typedef struct {
  int x;
  int y;
  int s;
} node;

int main(int argc,char** argv){
  int total;
  bool all_in_all[100];
  scanf("%d",&total);
  for(int counter = 0; counter < total; counter ++){
    all_in_all[counter] = false;
    int hx,lx,hy,ly,cnt;
    int head = 0,tail = 0;
    queue<node> q;
    char a[SIZE][SIZE];
    scanf("%d",&cnt);
    for(int i = 0; i < cnt; i++)
      scanf("%s",a[i]);
    //hx,hy是出发点，lx,ly是目标位置
    scanf("%d%d%d%d",&hx,&hy,&lx,&ly);
    while(!q.empty())q.pop();
    node now;
    now.x = hx;
    now.y = hy;
    now.s = 0;
    q.push(now);
    tail++;
    while(!q.empty()){
      now = q.front();
      q.pop();
      if(now.x == lx && now.y == ly){
	all_in_all[counter] = true;
        break;
      }
      a[now.x][now.y] = '#';
      for(int i=0;i<4;i++){
	int x=now.x+step[i][0];
	int y=now.y+step[i][1];
	if(x >= 0 && y >= 0 && x < cnt && y < cnt && a[x][y] == '.'){
	  a[x][y] = '#';
	  node next;
	  next.x = x;
	  next.y = y;
	  next.s = now.s + 1;
	  q.push(next);
	}
      }
    //↓while的终止大括号
    }
  }
  for(int counter = 0; counter < total; counter ++){
    if(all_in_all[counter]) printf("YES\n");
    else printf("NO\n");
  }
  // system("PAUSE");
  return 0;
}
<commit_msg>把宏改成常量<commit_after>#include<stdio.h>
#include<stdlib.h>
#include<queue>
using namespace std;

const int SIZE = 1000;

int step[4][2] = {{-1,0},{1,0},{0,-1},{0,1}};

typedef struct {
  int x;
  int y;
  int s;
} node;

int main(int argc,char** argv){
  int total;
  bool all_in_all[100];
  scanf("%d",&total);
  for(int counter = 0; counter < total; counter ++){
    all_in_all[counter] = false;
    int hx,lx,hy,ly,cnt;
    int head = 0,tail = 0;
    queue<node> q;
    char a[SIZE][SIZE];
    scanf("%d",&cnt);
    for(int i = 0; i < cnt; i++)
      scanf("%s",a[i]);
    //hx,hy是出发点，lx,ly是目标位置
    scanf("%d%d%d%d",&hx,&hy,&lx,&ly);
    while(!q.empty())q.pop();
    node now;
    now.x = hx;
    now.y = hy;
    now.s = 0;
    q.push(now);
    tail++;
    while(!q.empty()){
      now = q.front();
      q.pop();
      if(now.x == lx && now.y == ly){
	all_in_all[counter] = true;
        break;
      }
      a[now.x][now.y] = '#';
      for(int i=0;i<4;i++){
	int x=now.x+step[i][0];
	int y=now.y+step[i][1];
	if(x >= 0 && y >= 0 && x < cnt && y < cnt && a[x][y] == '.'){
	  a[x][y] = '#';
	  node next;
	  next.x = x;
	  next.y = y;
	  next.s = now.s + 1;
	  q.push(next);
	}
      }
    //↓while的终止大括号
    }
  }
  for(int counter = 0; counter < total; counter ++){
    if(all_in_all[counter]) printf("YES\n");
    else printf("NO\n");
  }
  // system("PAUSE");
  return 0;
}

{'fraction_non_alphanumeric': 0.23969631236442515, 'fraction_numerical': 0.022415039768618944, 'mean_word_length': 2.5069708491761724, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2804590', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1267, 'n_words': 243}