結果

問題 No.1224 I hate Sqrt Inequality
ユーザー chocorusk
提出日時 2020-09-11 21:23:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 723 bytes
コンパイル時間 1,127 ms
コンパイル使用メモリ 124,208 KB
最終ジャッジ日時 2025-01-14 09:48:17
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#include <list>
#define popcount __builtin_popcount
using namespace std;
typedef long long ll;
typedef pair<int, int> P;

int main()
{
	ll a, b; cin>>a>>b;
	ll g=gcd(a, b);
	a/=g, b/=g;
	while(b%2==0) b/=2;
	while(b%5==0) b/=5;
	if(b>1) cout<<"No"<<endl;
	else cout<<"Yes"<<endl;
	return 0;
}
0