結果
| 問題 | No.1722 [Cherry 3rd Tune C] In my way |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-10-29 21:29:28 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 2,000 ms |
| + 924µs | |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2026-09-11 12:28:46 |
| 合計ジャッジ時間 | 2,492 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import sys
input = sys.stdin.readline
import bisect
N,M=map(int,input().split())
X=list(map(int,input().split()))
Y=sorted(map(int,input().split()))
Y.append(1<<60)
for x in X:
t=bisect.bisect(Y,x)
if Y[t]-x>1<<58:
print("Infinity")
else:
print(Y[t]-x)
titia