結果
| 問題 | No.1722 [Cherry 3rd Tune C] In my way |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-10-29 21:24:30 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 2,000 ms |
| + 695µs | |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2026-09-11 12:23:37 |
| 合計ジャッジ時間 | 2,174 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import bisect
N,M = map(int, input().split())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
Y.sort()
for x in X:
i = bisect.bisect(Y,x)
if i<M:
print(Y[i]-x)
else:
print('Infinity')
H20