結果

問題 No.1224 I hate Sqrt Inequality
ユーザー syunsukesyunsuke
提出日時 2020-09-12 21:00:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 86,628 KB
実行使用メモリ 75,552 KB
最終ジャッジ日時 2023-09-02 14:49:03
合計ジャッジ時間 2,374 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
75,412 KB
testcase_01 AC 74 ms
75,552 KB
testcase_02 AC 73 ms
75,300 KB
testcase_03 AC 77 ms
75,508 KB
testcase_04 AC 79 ms
75,388 KB
testcase_05 AC 78 ms
75,404 KB
testcase_06 AC 79 ms
75,396 KB
testcase_07 AC 80 ms
75,408 KB
testcase_08 AC 79 ms
75,240 KB
testcase_09 AC 78 ms
75,368 KB
testcase_10 AC 77 ms
75,436 KB
testcase_11 AC 77 ms
75,244 KB
testcase_12 AC 74 ms
75,544 KB
testcase_13 AC 79 ms
75,344 KB
testcase_14 AC 78 ms
75,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
m=a
for i in range(10**6):
    m=(m*10)%b
if m!=0:
    print("Yes")
    exit()

if (m*10)%b==0:
    print("No")
else:
    print("Yes")
0