結果
| 問題 | No.1083 余りの余り | 
| コンテスト | |
| ユーザー |  kurimupy | 
| 提出日時 | 2020-06-19 21:31:23 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 249 bytes | 
| コンパイル時間 | 95 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 505,356 KB | 
| 最終ジャッジ日時 | 2024-07-03 13:57:12 | 
| 合計ジャッジ時間 | 4,731 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 1 TLE * 1 -- * 29 | 
ソースコード
N,K=map(int,input().split())
ans=0
import itertools
A=list(map(int,input().split()))
list(itertools.permutations(A))
for a in list(itertools.permutations(A)):
       c=K
       for i in range(N):
           c=c%a[i]
       ans=max(c,ans)
print(ans)
            
            
            
        