結果

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

ソースコード

diff #

from bisect import *

n,m = map(int,input().split())
x = list(map(int,input().split()))
y = list(map(int,input().split()))

for i in range(n):
    ind = bisect_left(y,x[i])
    if ind == m:
        print("Infinity")
    else:
        print(y[ind]-x[i])
0