結果

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

ソースコード

diff #

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