結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
![]() |
提出日時 | 2020-12-06 18:09:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 2,105 ms |
コンパイル使用メモリ | 191,752 KB |
最終ジャッジ日時 | 2025-01-16 18:28:53 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t A, B; cin >> A >> B; B /= gcd(A, B); while (B % 2 == 0) { B /= 2; } while (B % 5 == 0) { B /= 5; } if (B > 1) { cout << "Yes" << '\n'; } else { cout << "No" << '\n'; } return 0; }