結果

問題 No.1224 I hate Sqrt Inequality
ユーザー c-yan
提出日時 2020-09-11 21:27:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 300,500 KB
最終ジャッジ日時 2024-12-27 01:33:33
合計ジャッジ時間 10,934 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 10 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())

t = set()
a %= b
while True:
    a *= 10
    a %= b
    if a == 0:
        print('Yes')
        exit()
    if a in t:
        print('No')
        exit()
    t.add(a)
0