結果

問題 No.1224 I hate Sqrt Inequality
ユーザー koba-e964koba-e964
提出日時 2020-09-29 15:07:58
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 79,388 KB
最終ジャッジ日時 2023-09-17 00:06:04
合計ジャッジ時間 3,199 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,176 KB
testcase_01 RE -
testcase_02 AC 71 ms
71,196 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 69 ms
71,200 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 70 ms
71,348 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 70 ms
71,224 KB
testcase_14 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import sys
import math
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

a, b = map(int, readline().split())
g = math.gcd(a, b)
a //= g
b //= g
while True:
    x = math.gcd(b, 10)
    if x == 1:
        break
    b /= x

print('Yes' if b != 1 else 'No')
0