結果
問題 | No.1722 [Cherry 3rd Tune C] In my way |
ユーザー |
![]() |
提出日時 | 2021-10-29 21:30:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 63,360 KB |
最終ジャッジ日時 | 2024-10-07 10:04:58 |
合計ジャッジ時間 | 2,249 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
n, m = map(int, input().split()) X = list(map(int, input().split())) Y = list(map(int, input().split())) Y.sort() import bisect ans = [] for x in X: i = bisect.bisect_left(Y, x) if i == m: ans.append('Infinity') else: d = Y[i]-x ans.append(d) print(*ans, sep='\n')