凭什么洛谷未知错误Atcoder上AC
查看原帖
凭什么洛谷未知错误Atcoder上AC
1356594
zhenghaoHoney楼主2024/11/10 08:43
#include<iostream>
#include<cmath>
#include<string>
#include<cstring>
#include<algorithm>

using namespace std;

long long n;
int main(){
	cin>>n;
	while(n%2==0)
	{
		n/=2;
	}
	while(n%3==0)
	{
		n/=3;
	}
	if(n==1)
	{
		 cout<<"Yes";
	}
	else
	{
		cout<<"No";
		
	}
	return 0;
}
2024/11/10 08:43
加载中...