結果
問題 |
No.2092 Conjugation
|
ユーザー |
|
提出日時 | 2022-10-09 19:26:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 637 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 99,584 KB |
最終ジャッジ日時 | 2024-06-23 18:05:28 |
合計ジャッジ時間 | 3,244 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
# import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) A = list(map(int,input().split())) def cle(a,D): y = len(D)-1 x = 0 if D[x]>a: return 0 if D[y]<=a: return y+1 while y-x>1: mid = (y+x)//2 if D[mid]<=a: x = mid else: y = mid return y X = A[0] A = [-i for i in A] A.sort() ans = [] for i in range(1,X+1): tmp = cle(-i,A) ans.append(tmp) print(*ans)