結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 30 ms
10,880 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 128 ms
10,880 KB
testcase_04 AC 214 ms
10,880 KB
testcase_05 AC 157 ms
10,880 KB
testcase_06 AC 160 ms
10,752 KB
testcase_07 AC 135 ms
10,752 KB
testcase_08 AC 238 ms
10,880 KB
testcase_09 AC 147 ms
10,880 KB
testcase_10 WA -
testcase_11 AC 151 ms
10,880 KB
testcase_12 WA -
testcase_13 AC 192 ms
10,752 KB
testcase_14 WA -
testcase_15 AC 176 ms
10,752 KB
testcase_16 AC 201 ms
10,752 KB
testcase_17 WA -
testcase_18 AC 204 ms
10,880 KB
testcase_19 AC 159 ms
10,880 KB
testcase_20 WA -
testcase_21 AC 164 ms
10,752 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 122 ms
10,752 KB
testcase_25 AC 219 ms
10,752 KB
testcase_26 WA -
testcase_27 AC 179 ms
10,880 KB
testcase_28 AC 183 ms
10,752 KB
testcase_29 AC 200 ms
10,880 KB
testcase_30 WA -
testcase_31 AC 182 ms
10,752 KB
testcase_32 WA -
testcase_33 AC 162 ms
10,880 KB
testcase_34 AC 162 ms
10,752 KB
testcase_35 WA -
testcase_36 AC 243 ms
10,752 KB
testcase_37 WA -
testcase_38 AC 30 ms
10,752 KB
testcase_39 AC 30 ms
10,880 KB
testcase_40 AC 97 ms
10,880 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,752 KB
testcase_46 AC 115 ms
10,752 KB
testcase_47 WA -
testcase_48 AC 30 ms
10,752 KB
testcase_49 AC 65 ms
10,880 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())
xlis=factorization(x)
ylis=factorization(y)
if len(set(xlis) & set(ylis))==len(ylis):
    print("Yes")
else:
    print("No")
0