結果

問題 No.1083 余りの余り
ユーザー stngstng
提出日時 2022-05-14 17:42:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-09-30 09:33:39
合計ジャッジ時間 2,103 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,812 KB
testcase_01 AC 15 ms
7,876 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 AC 14 ms
7,752 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 14 ms
7,764 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 12 ms
7,836 KB
testcase_10 AC 13 ms
7,792 KB
testcase_11 WA -
testcase_12 AC 12 ms
7,920 KB
testcase_13 WA -
testcase_14 AC 12 ms
7,792 KB
testcase_15 AC 13 ms
7,748 KB
testcase_16 AC 12 ms
7,792 KB
testcase_17 AC 13 ms
7,792 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 13 ms
7,836 KB
testcase_22 AC 13 ms
7,792 KB
testcase_23 AC 12 ms
7,784 KB
testcase_24 WA -
testcase_25 AC 13 ms
7,912 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 13 ms
7,768 KB
testcase_30 AC 13 ms
7,768 KB
testcase_31 AC 14 ms
7,956 KB
testcase_32 AC 13 ms
7,836 KB
testcase_33 AC 13 ms
7,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = [int(i) for i in input().split()]

#a.sort(reverse=True)
#a = [13,11,17]
#print(a)
ans = k
val = 0
minv = min(a)

for i in range(n):
    tmp = ans % a[i]
    if tmp < minv:
        val = max(val,tmp)

print(val)
0