結果

問題 No.1083 余りの余り
ユーザー uni_pythonuni_python
提出日時 2020-06-19 22:06:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,468 KB
最終ジャッジ日時 2023-09-16 14:26:54
合計ジャッジ時間 4,028 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,356 KB
testcase_01 AC 71 ms
71,260 KB
testcase_02 AC 72 ms
71,008 KB
testcase_03 AC 71 ms
71,008 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 71 ms
71,224 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 71 ms
71,228 KB
testcase_10 AC 68 ms
71,024 KB
testcase_11 WA -
testcase_12 AC 70 ms
71,468 KB
testcase_13 WA -
testcase_14 AC 68 ms
71,184 KB
testcase_15 AC 69 ms
71,212 KB
testcase_16 AC 69 ms
71,464 KB
testcase_17 AC 69 ms
71,228 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 70 ms
71,284 KB
testcase_22 AC 69 ms
71,168 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 69 ms
71,400 KB
testcase_30 AC 70 ms
71,292 KB
testcase_31 AC 70 ms
71,196 KB
testcase_32 AC 69 ms
71,340 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0