tjut 1846

来源:互联网 发布:有声相册制作软件 编辑:程序博客网 时间:2024/06/14 05:36
#include <stdio.h>  #include <string.h>  #include <algorithm>  using namespace std;    int main()  {      int t,n,m;      scanf("%d",&t);      while(t--)      {          scanf("%d%d",&n,&m);          if(n%(m+1))              printf("first\n");          else              printf("second\n");      }        return 0;  } 

0 0