結果

問題 No.1723 [Cherry 3rd Tune *] Dead on
ユーザー tassei903tassei903
提出日時 2021-10-29 22:24:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 878 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 61,008 KB
最終ジャッジ日時 2024-04-16 15:15:12
合計ジャッジ時間 4,637 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,984 KB
testcase_01 AC 44 ms
54,188 KB
testcase_02 AC 44 ms
55,504 KB
testcase_03 AC 61 ms
60,564 KB
testcase_04 AC 71 ms
60,160 KB
testcase_05 AC 63 ms
59,860 KB
testcase_06 AC 69 ms
60,908 KB
testcase_07 AC 64 ms
59,600 KB
testcase_08 AC 74 ms
60,456 KB
testcase_09 AC 64 ms
59,272 KB
testcase_10 AC 69 ms
59,932 KB
testcase_11 AC 66 ms
60,200 KB
testcase_12 AC 72 ms
59,760 KB
testcase_13 AC 72 ms
60,224 KB
testcase_14 AC 51 ms
59,720 KB
testcase_15 AC 65 ms
60,616 KB
testcase_16 AC 69 ms
59,208 KB
testcase_17 AC 66 ms
59,608 KB
testcase_18 AC 68 ms
59,848 KB
testcase_19 AC 63 ms
60,052 KB
testcase_20 AC 61 ms
60,260 KB
testcase_21 AC 63 ms
59,412 KB
testcase_22 AC 64 ms
59,500 KB
testcase_23 AC 68 ms
59,352 KB
testcase_24 AC 61 ms
60,272 KB
testcase_25 AC 71 ms
60,484 KB
testcase_26 AC 68 ms
59,280 KB
testcase_27 AC 70 ms
59,952 KB
testcase_28 AC 65 ms
60,320 KB
testcase_29 AC 69 ms
61,008 KB
testcase_30 AC 70 ms
59,096 KB
testcase_31 AC 65 ms
60,136 KB
testcase_32 AC 67 ms
59,692 KB
testcase_33 AC 72 ms
60,940 KB
testcase_34 AC 73 ms
59,864 KB
testcase_35 AC 72 ms
60,256 KB
testcase_36 AC 71 ms
59,356 KB
testcase_37 AC 42 ms
54,944 KB
testcase_38 AC 43 ms
55,536 KB
testcase_39 AC 44 ms
54,064 KB
testcase_40 AC 61 ms
59,356 KB
testcase_41 AC 41 ms
54,692 KB
testcase_42 AC 42 ms
54,016 KB
testcase_43 AC 42 ms
55,004 KB
testcase_44 AC 42 ms
55,432 KB
testcase_45 AC 60 ms
59,432 KB
testcase_46 AC 64 ms
59,344 KB
testcase_47 AC 70 ms
60,088 KB
testcase_48 AC 44 ms
59,260 KB
testcase_49 AC 56 ms
60,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

def facts(n):
    res = []
    if n==1:
        return res
    for i in range(2, int(n**0.5)+4):
        if n%i==0:
            c = 0
            while n%i==0:
                c += 1
                n//=i
            res.append((i, c))
    if n!=1:
        res.append((n, 1))
    return res

x,a,y,b = na()

d1 = facts(x)
d2 = facts(y)

from collections import defaultdict

d = defaultdict(int)
for i, j in d1:
    d[i] = j

for i, j, in d2:
    if d[i]*a<j*b:
        No()
        exit()
Yes()
0