結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー minimumminimum
提出日時 2021-10-29 21:55:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 61,440 KB
最終ジャッジ日時 2024-04-16 14:45:50
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 47 ms
57,856 KB
testcase_02 AC 53 ms
60,672 KB
testcase_03 AC 52 ms
60,928 KB
testcase_04 AC 52 ms
60,544 KB
testcase_05 AC 51 ms
59,648 KB
testcase_06 AC 45 ms
57,728 KB
testcase_07 AC 51 ms
59,648 KB
testcase_08 AC 53 ms
60,800 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 54 ms
61,184 KB
testcase_12 AC 53 ms
60,672 KB
testcase_13 WA -
testcase_14 AC 53 ms
60,800 KB
testcase_15 AC 53 ms
61,184 KB
testcase_16 WA -
testcase_17 AC 53 ms
60,672 KB
testcase_18 AC 52 ms
60,800 KB
testcase_19 AC 53 ms
60,672 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

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