Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  4shizi
Language: C/C++
Code:
#include<iostream>
using namespace std;
int main()
{
 int c,n,m;
 cin>>c;
    while(c--)
 {
  cin>>n>>m;
  if(n%(m+1))
   cout<<"first"<<endl;
  else
   cout<<"second"<<endl;
 }
   return 0;
}
Comments: