HDU 1846 Brave Game(巴什博弈)

来源:互联网 发布:宁波行知小学 编辑:程序博客网 时间:2024/06/02 14:45
#include<iostream>using namespace std;int main(){    int t;    cin>>t;    while(t--)    {        int n,m;        cin>>n>>m;        if(n%(m+1)==0) cout<<"second"<<endl;        else cout<<"first"<<endl;    }    return 0;}

0 0