题面

HDU

题解

\(Bash\ Game\)模板题

#include<iostream>
using namespace std;
int T,n,m;
int main()
{
	ios::sync_with_stdio(false);
	cin>>T;
	while(T--)
	{
		cin>>n>>m;
		if(n%(m+1))cout<<"first"<<endl;
		else cout<<"second"<<endl;
	}
	return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
猜你喜欢
  • 2021-06-11
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-06-17
相关资源
相似解决方案