結果
問題 | No.1651 Removing Cards |
ユーザー |
![]() |
提出日時 | 2021-08-20 22:33:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 100,480 KB |
最終ジャッジ日時 | 2024-10-14 04:33:55 |
合計ジャッジ時間 | 8,226 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 6 |
ソースコード
from bisect import bisect_right as brK, Q = map(int, input().split())A = [int(input()) for _ in range(Q)]ma = max(A)L = []i = 0while i <= ma:p = i // K + 1i += pn = i // K + 1while n > p:i += n - pp = nn = i // K + 1L.append(i + 1)for a in A:print(L[br(L, a)-1])