結果
問題 | No.1083 余りの余り |
ユーザー | tanon710 |
提出日時 | 2020-06-19 23:54:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 87,304 KB |
実行使用メモリ | 89,512 KB |
最終ジャッジ日時 | 2023-09-16 16:09:21 |
合計ジャッジ時間 | 11,352 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,608 KB |
testcase_01 | AC | 77 ms
76,504 KB |
testcase_02 | AC | 82 ms
76,688 KB |
testcase_03 | AC | 77 ms
76,500 KB |
testcase_04 | WA | - |
testcase_05 | AC | 1,026 ms
79,292 KB |
testcase_06 | AC | 71 ms
71,428 KB |
testcase_07 | AC | 86 ms
76,544 KB |
testcase_08 | AC | 84 ms
76,656 KB |
testcase_09 | AC | 80 ms
76,404 KB |
testcase_10 | AC | 84 ms
76,680 KB |
testcase_11 | WA | - |
testcase_12 | AC | 79 ms
76,612 KB |
testcase_13 | AC | 78 ms
76,740 KB |
testcase_14 | AC | 71 ms
71,248 KB |
testcase_15 | AC | 72 ms
71,220 KB |
testcase_16 | AC | 71 ms
71,472 KB |
testcase_17 | AC | 72 ms
71,300 KB |
testcase_18 | WA | - |
testcase_19 | AC | 1,030 ms
79,244 KB |
testcase_20 | AC | 98 ms
76,668 KB |
testcase_21 | AC | 182 ms
77,252 KB |
testcase_22 | AC | 73 ms
71,348 KB |
testcase_23 | TLE | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
ソースコード
n,k=map(int,input().split()) arr=list(map(int,input().split())) dp=[0]*(2**n) dp[0]=k for _ in range(10): for i in range(2**n): for j in range(n): if i&(1<<j): continue dp[i+(1<<j)]=max(dp[i+(1<<j)],dp[i]%arr[j]) print(dp[-1])