結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
|
提出日時 | 2020-09-12 03:42:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 1,682 ms |
コンパイル使用メモリ | 165,192 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 20:36:34 |
合計ジャッジ時間 | 2,547 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define fr(i, p, n) for(int i = p; i < n; i++) #define rev(i, n, p) for(int i = n; i >= p; i--) typedef long long int LL; const int mod = 1e9 + 7; #define MX INT_MAX #define MN INT_MIN int main() { LL a, b; cin >> a >> b; LL t = __gcd(a, b); while (b % 2 == 0) { b /= 2; } while (b % 5 == 0) { b /= 5; } b == 1 ? cout << "No" : cout << "Yes"; return 0; }