結果

問題 No.1723 [Cherry 3rd Tune *] Dead on
ユーザー ibukitiibukiti
提出日時 2021-10-29 22:42:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 488 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-16 15:31:48
合計ジャッジ時間 8,194 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 123 ms
10,752 KB
testcase_04 AC 215 ms
10,752 KB
testcase_05 AC 155 ms
10,880 KB
testcase_06 AC 158 ms
10,880 KB
testcase_07 AC 134 ms
10,752 KB
testcase_08 AC 238 ms
10,880 KB
testcase_09 AC 148 ms
10,752 KB
testcase_10 WA -
testcase_11 AC 152 ms
10,752 KB
testcase_12 WA -
testcase_13 AC 192 ms
10,752 KB
testcase_14 WA -
testcase_15 AC 175 ms
10,880 KB
testcase_16 AC 199 ms
10,752 KB
testcase_17 WA -
testcase_18 AC 202 ms
10,752 KB
testcase_19 AC 160 ms
10,752 KB
testcase_20 WA -
testcase_21 AC 163 ms
10,880 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 123 ms
10,752 KB
testcase_25 AC 219 ms
10,880 KB
testcase_26 WA -
testcase_27 AC 179 ms
10,880 KB
testcase_28 AC 185 ms
10,752 KB
testcase_29 AC 200 ms
10,752 KB
testcase_30 WA -
testcase_31 AC 182 ms
10,880 KB
testcase_32 WA -
testcase_33 AC 161 ms
10,752 KB
testcase_34 AC 161 ms
10,752 KB
testcase_35 WA -
testcase_36 AC 241 ms
10,752 KB
testcase_37 AC 30 ms
10,752 KB
testcase_38 AC 31 ms
10,752 KB
testcase_39 AC 30 ms
10,624 KB
testcase_40 AC 97 ms
10,752 KB
testcase_41 WA -
testcase_42 AC 30 ms
10,752 KB
testcase_43 AC 30 ms
10,880 KB
testcase_44 WA -
testcase_45 AC 96 ms
10,880 KB
testcase_46 AC 113 ms
10,752 KB
testcase_47 WA -
testcase_48 AC 30 ms
10,752 KB
testcase_49 AC 65 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            while temp%i==0:
                temp //= i
            arr.append(i)

    if temp!=1:
        arr.append(temp)

    if arr==[]:
        arr.append(n)

    return arr
x,a,y,b=map(int,input().split())
if y==1:
    print("Yes")
    exit()
xlis=factorization(x)
ylis=factorization(y)
if len(set(xlis) & set(ylis))==len(ylis):
    print("Yes")
else:
    print("No")
0