結果
問題 |
No.1083 余りの余り
|
ユーザー |
![]() |
提出日時 | 2020-06-23 21:37:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-03 19:30:08 |
合計ジャッジ時間 | 1,998 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 3 WA * 3 RE * 25 |
ソースコード
from itertools import product N, K = map(int, input().split()) A = list(map(int, input().split())) result = 0 for p in product([True, False], repeat=2): t = K for i in range(N): if p[i]: t %= A[i] result = max(result, t) print(result)