結果
問題 | No.1083 余りの余り |
ユーザー |
![]() |
提出日時 | 2020-01-28 01:16:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 15,744 KB |
最終ジャッジ日時 | 2024-10-15 01:43:58 |
合計ジャッジ時間 | 5,011 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 1 -- * 29 |
ソースコード
n,k=map(int,input().split()) a=list(map(int,input().split())) from itertools import permutations ans=0 for i in permutations(a,n): kk=k for j in i:kk%=j ans=max(ans,kk) print(ans)