結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー pluto77pluto77
提出日時 2022-02-08 09:19:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 895 ms
コンパイル使用メモリ 10,460 KB
実行使用メモリ 8,316 KB
最終ジャッジ日時 2023-09-05 06:01:05
合計ジャッジ時間 3,682 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,764 KB
testcase_01 AC 19 ms
7,780 KB
testcase_02 AC 45 ms
7,724 KB
testcase_03 AC 43 ms
7,724 KB
testcase_04 AC 32 ms
7,724 KB
testcase_05 AC 22 ms
7,720 KB
testcase_06 AC 16 ms
7,780 KB
testcase_07 AC 18 ms
7,784 KB
testcase_08 AC 59 ms
8,160 KB
testcase_09 AC 20 ms
7,732 KB
testcase_10 AC 16 ms
7,816 KB
testcase_11 AC 66 ms
8,316 KB
testcase_12 AC 64 ms
8,156 KB
testcase_13 AC 65 ms
8,156 KB
testcase_14 AC 65 ms
8,164 KB
testcase_15 AC 65 ms
8,164 KB
testcase_16 AC 62 ms
8,312 KB
testcase_17 AC 68 ms
8,160 KB
testcase_18 AC 65 ms
8,288 KB
testcase_19 AC 67 ms
8,296 KB
testcase_20 AC 65 ms
8,172 KB
testcase_21 AC 16 ms
7,784 KB
testcase_22 AC 16 ms
7,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1723
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 j-i>=0:
   print(j-i)
   break
 else:
  print('Infinity')
0