mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1846.cpp
This commit is contained in:
parent
e7cc423eaa
commit
50ccef8488
23
HDOJ/1846.cpp
Normal file
23
HDOJ/1846.cpp
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
using namespace std;
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int t;
|
||||||
|
scanf("%d",&t);
|
||||||
|
while(t--)
|
||||||
|
{
|
||||||
|
int n,m;
|
||||||
|
scanf("%d %d",&n,&m);
|
||||||
|
if(n%(m+1)==0)
|
||||||
|
{
|
||||||
|
printf("second\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("first\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user