結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー k_o_pasturek_o_pasture
提出日時 2022-02-12 22:18:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 63,488 KB
最終ジャッジ日時 2024-06-29 01:32:29
合計ジャッジ時間 2,365 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right

N, M = map(int, input().split())
X = list(map(int, input().split()))
Y = sorted(list(map(int, input().split())))

for x in X:
	i = bisect_right(Y,x)
	# print('TEST',i,x)
	if i == M:
		print('Infinity')
	else:
		print(Y[i] - x)
0