結果

問題 No.1224 I hate Sqrt Inequality
ユーザー nononono
提出日時 2020-10-16 08:50:35
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 1,417 ms
コンパイル使用メモリ 163,992 KB
実行使用メモリ 8,768 KB
最終ジャッジ日時 2023-09-28 01:44:28
合計ジャッジ時間 5,472 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
7,784 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const int INF = 1001001001;

int main() {
  int a, b;
  cin>>a>>b;
  int t = __gcd(a, b);
  b /= t;

  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