标签:
#include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; int main() { int t,n,m; int i,j,k; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); if(n%(m+1)!=0) { printf("first\n"); } else printf("second\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/sola1994/p/4740870.html