結果
| 問題 | No.1224 I hate Sqrt Inequality | 
| コンテスト | |
| ユーザー |  hamap000 | 
| 提出日時 | 2020-09-11 21:31:40 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 451 bytes | 
| コンパイル時間 | 1,664 ms | 
| コンパイル使用メモリ | 165,284 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-11 21:16:43 | 
| 合計ジャッジ時間 | 2,118 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 WA * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const ll MOD = 1000000007;
int main() {
  ll a, b;
  cin >> a >> b;
  int num = 0;
  while (num <= 1e5) {
    while (a < b) {
      a *= 10;
    }
    a = a % b;
    if (a == 0) {
      cout << "No" << endl;
      return 0;
    }
    num++;
  }
  cout << "Yes" << endl;
  return 0;
}
            
            
            
        