結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー harapecoharapeco
提出日時 2022-03-16 11:46:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 249 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 62,388 KB
最終ジャッジ日時 2023-10-24 16:28:52
合計ジャッジ時間 5,970 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,492 KB
testcase_01 AC 46 ms
59,776 KB
testcase_02 AC 150 ms
62,388 KB
testcase_03 AC 124 ms
62,388 KB
testcase_04 AC 79 ms
62,388 KB
testcase_05 AC 52 ms
60,100 KB
testcase_06 AC 42 ms
59,776 KB
testcase_07 AC 48 ms
60,100 KB
testcase_08 AC 208 ms
62,388 KB
testcase_09 AC 51 ms
59,776 KB
testcase_10 AC 42 ms
59,776 KB
testcase_11 AC 245 ms
62,388 KB
testcase_12 AC 240 ms
62,388 KB
testcase_13 AC 237 ms
62,388 KB
testcase_14 AC 242 ms
62,388 KB
testcase_15 AC 240 ms
62,388 KB
testcase_16 AC 230 ms
62,388 KB
testcase_17 AC 249 ms
62,388 KB
testcase_18 AC 239 ms
62,388 KB
testcase_19 AC 244 ms
62,388 KB
testcase_20 AC 241 ms
62,388 KB
testcase_21 AC 37 ms
53,492 KB
testcase_22 AC 38 ms
53,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
X = list(map(int,input().split()))
Y = list(map(int,input().split()))
Y.sort()
for i in X:
    for j in Y:
        if i < j:
            print(j-i)
            break
        elif Y.index(j) == len(Y)-1:
            print('Infinity')
0