結果
問題 | No.1330 Multiply or Divide |
ユーザー | 👑 Kazun |
提出日時 | 2021-01-08 21:26:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 81,996 KB |
実行使用メモリ | 118,340 KB |
最終ジャッジ日時 | 2024-04-28 01:59:47 |
合計ジャッジ時間 | 4,181 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 86 ms
118,340 KB |
testcase_02 | WA | - |
testcase_03 | AC | 32 ms
52,224 KB |
testcase_04 | AC | 34 ms
52,608 KB |
testcase_05 | AC | 31 ms
52,204 KB |
testcase_06 | AC | 72 ms
111,668 KB |
testcase_07 | WA | - |
testcase_08 | AC | 101 ms
112,276 KB |
testcase_09 | AC | 98 ms
113,028 KB |
testcase_10 | AC | 96 ms
112,396 KB |
testcase_11 | AC | 97 ms
112,532 KB |
testcase_12 | AC | 96 ms
112,260 KB |
testcase_13 | AC | 31 ms
52,300 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 31 ms
51,764 KB |
testcase_17 | WA | - |
testcase_18 | AC | 89 ms
112,400 KB |
testcase_19 | AC | 92 ms
112,276 KB |
testcase_20 | AC | 92 ms
112,412 KB |
testcase_21 | AC | 90 ms
112,288 KB |
testcase_22 | AC | 90 ms
112,260 KB |
testcase_23 | AC | 94 ms
112,376 KB |
testcase_24 | AC | 31 ms
52,792 KB |
testcase_25 | AC | 29 ms
53,160 KB |
testcase_26 | AC | 30 ms
52,532 KB |
testcase_27 | AC | 30 ms
52,548 KB |
testcase_28 | AC | 30 ms
53,720 KB |
testcase_29 | AC | 30 ms
52,960 KB |
testcase_30 | AC | 30 ms
52,880 KB |
testcase_31 | AC | 32 ms
52,052 KB |
testcase_32 | AC | 32 ms
52,888 KB |
testcase_33 | AC | 32 ms
51,748 KB |
testcase_34 | AC | 72 ms
108,624 KB |
testcase_35 | AC | 46 ms
73,828 KB |
testcase_36 | AC | 69 ms
103,840 KB |
testcase_37 | AC | 66 ms
98,120 KB |
testcase_38 | AC | 55 ms
84,552 KB |
testcase_39 | AC | 46 ms
74,648 KB |
testcase_40 | AC | 50 ms
78,816 KB |
testcase_41 | AC | 42 ms
68,468 KB |
testcase_42 | AC | 61 ms
93,840 KB |
testcase_43 | AC | 66 ms
99,128 KB |
testcase_44 | WA | - |
testcase_45 | WA | - |
ソースコード
N,M,P=map(int,input().split()) A=list(map(int,input().split())) B=[] for a in A: while a%P==0: a//=P B.append(a) S=max(B) if S==1: print(-1) exit(0) t=1 K=0 while t<=M: t*=S K+=1 print(K)