結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー minimumminimum
提出日時 2021-10-29 21:57:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 61,440 KB
最終ジャッジ日時 2024-04-16 14:47:10
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,840 KB
testcase_01 AC 51 ms
57,984 KB
testcase_02 AC 55 ms
61,056 KB
testcase_03 AC 56 ms
60,544 KB
testcase_04 AC 53 ms
61,312 KB
testcase_05 AC 54 ms
59,776 KB
testcase_06 AC 47 ms
57,344 KB
testcase_07 AC 53 ms
59,904 KB
testcase_08 AC 56 ms
60,800 KB
testcase_09 AC 48 ms
57,728 KB
testcase_10 AC 48 ms
57,728 KB
testcase_11 AC 56 ms
61,184 KB
testcase_12 AC 55 ms
60,800 KB
testcase_13 AC 56 ms
60,928 KB
testcase_14 AC 56 ms
60,928 KB
testcase_15 AC 56 ms
60,928 KB
testcase_16 AC 56 ms
61,184 KB
testcase_17 AC 56 ms
60,928 KB
testcase_18 AC 56 ms
61,056 KB
testcase_19 AC 56 ms
61,056 KB
testcase_20 AC 57 ms
61,440 KB
testcase_21 AC 44 ms
51,712 KB
testcase_22 AC 44 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inf = 10 ** 18
N, M = map(int, input().split())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
Y.sort()
ans = []
for x in X:
    res = inf
    for y in Y:
        if x < y:
            res = y
            break
    if res == inf:
        print('Infinity') ########
    else:
        print(res - x)
0