結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー player
提出日時 2023-12-31 00:04:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 64,744 KB
最終ジャッジ日時 2024-09-27 16:55:53
合計ジャッジ時間 2,218 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import *

n,m = map(int,input().split())
x = list(map(int,input().split()))
y = list(map(int,input().split()))
y.sort()
for i in range(n):
    ind = bisect_left(y,x[i])
    if ind == m:
        print("Infinity")
    else:
        print(y[ind]-x[i])
0