結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー playerplayer
提出日時 2023-12-31 00:04:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 63,908 KB
最終ジャッジ日時 2023-12-31 00:04:08
合計ジャッジ時間 2,454 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,332 KB
testcase_01 AC 42 ms
58,940 KB
testcase_02 AC 48 ms
61,700 KB
testcase_03 AC 49 ms
61,716 KB
testcase_04 AC 48 ms
61,720 KB
testcase_05 AC 44 ms
58,940 KB
testcase_06 AC 37 ms
53,332 KB
testcase_07 AC 45 ms
58,940 KB
testcase_08 AC 52 ms
63,908 KB
testcase_09 AC 42 ms
58,684 KB
testcase_10 AC 38 ms
53,332 KB
testcase_11 AC 52 ms
63,908 KB
testcase_12 AC 53 ms
63,904 KB
testcase_13 AC 52 ms
63,908 KB
testcase_14 AC 52 ms
63,908 KB
testcase_15 AC 52 ms
63,908 KB
testcase_16 AC 52 ms
63,908 KB
testcase_17 AC 52 ms
63,908 KB
testcase_18 AC 52 ms
63,908 KB
testcase_19 AC 51 ms
63,908 KB
testcase_20 AC 53 ms
63,908 KB
testcase_21 AC 37 ms
53,332 KB
testcase_22 AC 37 ms
53,332 KB
権限があれば一括ダウンロードができます

ソースコード

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