<commit_before>#include <iostream>
#include <vector>
using namespace std;

struct rectangle {
  int h;
  int w;
  rectangle(int h, int w) :
    h(h), w(w) {}
};

int main(void) {
  const int inf = 889464;
  int h, w;
  int y, x;
  int i, j;
  vector<rectangle> dataset;
  vector<rectangle>::iterator ds_iter;

  while(true){
    cin >> h >> w;
    if (h == 0 && w == 0) break;
    dataset.push_back(rectangle(h, w));
  }

  for(ds_iter = dataset.begin(); ds_iter != dataset.end(); ds_iter++){
    rectangle rect = *ds_iter;
    h = rect.h;
    w = rect.w;
    int dia = h*h + w*w;
    int diam = inf;
    for(i=1;i<=150;i++){  // よこ
      for(j=1;j<i;j++){  // たて
        int a = i*i+j*j;
        if ((dia < a || (dia == a && j > h)) && a <= diam){
          y = j;
          x = i;
          diam = a;
        }
      }
    }
    cout << y << " " << x << endl;
  }
  return 0;
}<commit_msg>modified<commit_after>#include <cstdio>
#define REP(i,n) for(int i=0;i<n;i++)
int main(void) {
  const int inf = 889464;
  while(1){
    int x,y,h,w;
    scanf("%d%d\n",&h,&w);
    if(h==0&&w==0)break;
    int dia=h*h+w*w;
    int diam=inf;
    REP(i,150){
      for(int j=1;j<i;j++){
        int a=i*i+j*j;
        if((dia<a||(dia==a&&j>h))&&a<=diam){
          y=j;
          x=i;
          diam=a;
        }
      }
    }
    printf("%d %d\n",y,x);
  }
  return 0;
}
{'fraction_non_alphanumeric': 0.2125, 'fraction_numerical': 0.021323529411764706, 'mean_word_length': 2.0515695067264574, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 14, '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': '446592', 'n_tokens_mistral': 619, 'n_tokens_neox': 598, 'n_words': 131}