2016校赛网络赛D抢人头

在这里插入图片描述
这题没啥可说的。。看代码把

#include<bits/stdc++.h>
using namespace std;
const long long maxn = 100+5;
long long a, x, y;
int main()
{
	while (cin >> x) {
		cin >> y >> a;
		a %= x+y;
		if (a != 0 && a - x <= 0)
			cout << "wanshen" << endl; 
		else 
			cout << "light" << endl;
	}
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_42397248/article/details/89189652