結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー dangodango
提出日時 2023-06-25 21:34:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 77,348 KB
最終ジャッジ日時 2023-09-15 11:39:02
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,352 KB
testcase_01 AC 115 ms
76,520 KB
testcase_02 AC 129 ms
77,068 KB
testcase_03 AC 120 ms
76,916 KB
testcase_04 AC 111 ms
76,948 KB
testcase_05 AC 96 ms
76,708 KB
testcase_06 AC 87 ms
76,108 KB
testcase_07 AC 94 ms
76,524 KB
testcase_08 AC 134 ms
77,108 KB
testcase_09 AC 94 ms
76,712 KB
testcase_10 AC 89 ms
75,984 KB
testcase_11 AC 142 ms
76,928 KB
testcase_12 AC 140 ms
77,144 KB
testcase_13 AC 145 ms
77,144 KB
testcase_14 AC 144 ms
77,112 KB
testcase_15 AC 144 ms
77,084 KB
testcase_16 AC 146 ms
77,184 KB
testcase_17 AC 144 ms
77,268 KB
testcase_18 AC 147 ms
77,348 KB
testcase_19 AC 148 ms
77,228 KB
testcase_20 AC 145 ms
77,016 KB
testcase_21 AC 74 ms
71,304 KB
testcase_22 AC 73 ms
71,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
x = list(map(int, input().split()))
k = list(map(int, input().split()))
a = [min(list(filter(lambda x: x > i, k))) if list(filter(lambda x: x > i, k)) else 0 for i in x]
print('\n'.join([str(i - j) if i - j >= 0 else "Infinity" for i, j in zip(a, x)]))
0