結果
問題 |
No.1083 余りの余り
|
ユーザー |
![]() |
提出日時 | 2020-06-19 22:06:33 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,316 KB |
実行使用メモリ | 54,680 KB |
最終ジャッジ日時 | 2024-07-03 14:48:01 |
合計ジャッジ時間 | 2,719 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 16 |
ソースコード
import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) mod=10**9+7 def main(): N,K=MI() A=LI() A.sort() L=[] for i in range(N): L.append(K%A[i]) ans=0 for i in range(N): if L[i]<A[0]: ans=L[i] print(ans) main()