結果
問題 |
No.1083 余りの余り
|
ユーザー |
![]() |
提出日時 | 2020-06-19 21:29:55 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 847,612 KB |
最終ジャッジ日時 | 2024-07-03 13:56:42 |
合計ジャッジ時間 | 7,222 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 MLE * 2 -- * 28 |
ソースコード
N,K=map(int,input().split()) ans=0 import itertools A=list(map(int,input().split())) L=list(itertools.permutations(A)) for a in L: c=K for i in range(N): c=c%a[i] ans=max(c,ans) print(ans)