結果
問題 |
No.1722 [Cherry 3rd Tune C] In my way
|
ユーザー |
|
提出日時 | 2021-12-29 17:20:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-04 03:33:42 |
合計ジャッジ時間 | 1,915 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 7 RE * 3 |
ソースコード
N,M = map(int,input().split()) X = list(map(int,input().split())) Y = list(map(int,input().split())) Y.sort() def calc(x): if Y[-1] < x: return 'Infinity' end = N - 1 start = -1 while end - start > 1: mid = (start + end) // 2 if x < Y[mid]: end = mid else: start = mid return Y[end] - x for i in X: print(calc(i))