結果

問題 No.1224 I hate Sqrt Inequality
ユーザー hal9009hal9009
提出日時 2020-11-17 21:46:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 267 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 14,812 KB
最終ジャッジ日時 2023-09-30 14:28:10
合計ジャッジ時間 4,316 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
14,812 KB
testcase_01 AC 15 ms
7,824 KB
testcase_02 AC 15 ms
7,776 KB
testcase_03 AC 16 ms
7,704 KB
testcase_04 AC 16 ms
7,796 KB
testcase_05 AC 16 ms
7,872 KB
testcase_06 AC 15 ms
7,900 KB
testcase_07 AC 15 ms
7,816 KB
testcase_08 AC 16 ms
7,856 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
md = []

while True:
    if a<b:
        a *= 10
    else:
        a %= b
        if a in md:
            print('Yes')
            break
        if a == 0:
            print('No')
            break
        else:
            md.append(a)
0