#include<bits/stdc++.h>
using namespace std;
int n,m;
int c;
int main()
{
scanf("%d",&c);
while(c--){
scanf("%d%d",&n,&m);
int t;
t=1+m;
if(n%t!=0) printf("first\n");
else printf("second\n");
}
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int n,m;
int c;
int main()
{
scanf("%d",&c);
while(c--){
scanf("%d%d",&n,&m);
int t;
t=1+m;
if(n%t!=0) printf("first\n");
else printf("second\n");
}
return 0;
}

被折叠的 条评论
为什么被折叠?