結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー mahiro72
提出日時 2021-10-29 21:28:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,124 KB
実行使用メモリ 63,488 KB
最終ジャッジ日時 2024-10-07 09:55:31
合計ジャッジ時間 2,307 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

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

for x in X:
    r = bisect.bisect(Y,x)
    print(Y[r]-x if r<len(Y) else 'Infinity')
0