結果

問題 No.1330 Multiply or Divide
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-01-08 21:59:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 103,680 KB
最終ジャッジ日時 2024-04-28 02:53:25
合計ジャッジ時間 3,979 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 74 ms
103,680 KB
testcase_02 WA -
testcase_03 AC 31 ms
51,968 KB
testcase_04 AC 34 ms
52,096 KB
testcase_05 AC 32 ms
51,968 KB
testcase_06 AC 62 ms
96,896 KB
testcase_07 WA -
testcase_08 AC 86 ms
101,972 KB
testcase_09 AC 84 ms
101,888 KB
testcase_10 AC 83 ms
101,888 KB
testcase_11 AC 83 ms
101,936 KB
testcase_12 AC 82 ms
101,820 KB
testcase_13 AC 30 ms
51,584 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 30 ms
51,840 KB
testcase_17 WA -
testcase_18 AC 81 ms
102,072 KB
testcase_19 AC 85 ms
101,728 KB
testcase_20 AC 81 ms
101,764 KB
testcase_21 AC 84 ms
101,896 KB
testcase_22 AC 82 ms
101,888 KB
testcase_23 AC 83 ms
102,024 KB
testcase_24 AC 29 ms
51,584 KB
testcase_25 AC 30 ms
51,712 KB
testcase_26 AC 29 ms
52,096 KB
testcase_27 AC 30 ms
51,584 KB
testcase_28 AC 30 ms
52,352 KB
testcase_29 AC 30 ms
51,840 KB
testcase_30 AC 33 ms
51,968 KB
testcase_31 AC 31 ms
51,968 KB
testcase_32 AC 33 ms
52,224 KB
testcase_33 AC 32 ms
51,968 KB
testcase_34 AC 72 ms
96,512 KB
testcase_35 AC 46 ms
69,632 KB
testcase_36 AC 62 ms
92,620 KB
testcase_37 AC 57 ms
89,056 KB
testcase_38 AC 52 ms
77,696 KB
testcase_39 AC 44 ms
70,912 KB
testcase_40 AC 46 ms
74,240 KB
testcase_41 AC 40 ms
66,412 KB
testcase_42 AC 56 ms
86,400 KB
testcase_43 AC 61 ms
89,728 KB
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,p = map(int,input().split())
a = list(map(int,input().split()))
m_a = max(a)

s = -1
for x in a:
    if x%p == 0:
        pass
    else:
        s = max(s, x)
if s == -1:
    print(-1)
else:
    ans = 0
    x = 1
    while x <= m:
        x *= s
        ans += 1
    print(ans)
    
0