tjut 1846

#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;  
} 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章