結果
問題 | No.1250 汝は倍数なりや? |
ユーザー | Forested |
提出日時 | 2020-10-09 21:31:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 1,316 ms |
コンパイル使用メモリ | 87,016 KB |
実行使用メモリ | 71,484 KB |
最終ジャッジ日時 | 2023-09-27 14:50:26 |
合計ジャッジ時間 | 6,456 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,268 KB |
testcase_01 | AC | 69 ms
71,300 KB |
testcase_02 | AC | 68 ms
71,284 KB |
testcase_03 | AC | 69 ms
71,092 KB |
testcase_04 | AC | 69 ms
71,256 KB |
testcase_05 | AC | 70 ms
71,252 KB |
testcase_06 | AC | 70 ms
71,124 KB |
testcase_07 | AC | 70 ms
71,236 KB |
testcase_08 | AC | 71 ms
71,388 KB |
testcase_09 | AC | 72 ms
71,304 KB |
testcase_10 | AC | 70 ms
70,940 KB |
testcase_11 | AC | 70 ms
71,352 KB |
testcase_12 | AC | 70 ms
71,200 KB |
testcase_13 | AC | 68 ms
71,484 KB |
testcase_14 | AC | 70 ms
71,088 KB |
testcase_15 | AC | 70 ms
71,272 KB |
testcase_16 | AC | 69 ms
71,324 KB |
testcase_17 | AC | 71 ms
71,096 KB |
testcase_18 | AC | 70 ms
71,468 KB |
testcase_19 | AC | 72 ms
71,356 KB |
testcase_20 | AC | 71 ms
71,124 KB |
testcase_21 | AC | 70 ms
71,280 KB |
testcase_22 | AC | 71 ms
71,404 KB |
testcase_23 | AC | 72 ms
70,964 KB |
testcase_24 | AC | 71 ms
71,420 KB |
testcase_25 | AC | 71 ms
71,272 KB |
testcase_26 | AC | 72 ms
71,344 KB |
testcase_27 | AC | 72 ms
71,416 KB |
testcase_28 | AC | 71 ms
71,176 KB |
testcase_29 | AC | 72 ms
71,440 KB |
testcase_30 | AC | 72 ms
71,324 KB |
testcase_31 | AC | 71 ms
71,468 KB |
testcase_32 | AC | 72 ms
71,088 KB |
testcase_33 | TLE | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
testcase_47 | -- | - |
testcase_48 | -- | - |
testcase_49 | -- | - |
testcase_50 | -- | - |
testcase_51 | -- | - |
ソースコード
n, h = map(int, input().split()) a = list(map(int, input().split())) sum = 1 while True: b = [] for i in range(len(a) // 2): b.append(a[i * 2] * a[i * 2 + 1]) if len(a) % 2: b.append(a[-1]) a = b if len(a) == 1: break if a[0] % h == 0: print("YES") else: print("NO")