杭电OJ-2104_hide handkerchief超简洁代码

#include<iostream>
using namespace std;
int n, m;;
int zz(int a, int b)
{
	return b==0 ? a: zz(b, a%b);
}
int main()
{
	while (cin >> n >> m&&n != -1 && m != -1)
		cout << (nb(n, m) == 1 ? "YES" : "POOR Haha") << endl;
}


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-08-31
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-07-05
  • 2021-08-12
  • 2021-11-11
  • 2021-07-17
  • 2021-05-30
相关资源
相似解决方案