結果
| 問題 |
No.1722 [Cherry 3rd Tune C] In my way
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-09 15:54:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 64,708 KB |
| 最終ジャッジ日時 | 2025-01-01 19:53:47 |
| 合計ジャッジ時間 | 2,374 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import bisect
N,M = map(int,input().split())
lsX = list(map(int,input().split()))
lsY = list(map(int,input().split()))
lsY.sort()
for i in range(N):
x = lsX[i]
ind = bisect.bisect_right(lsY, x)
if ind >= len(lsY):
print('Infinity')
else:
print(lsY[ind]-x)