結果
問題 | No.2092 Conjugation |
ユーザー | Navier_Boltzmann |
提出日時 | 2022-10-09 19:26:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 179 ms / 2,000 ms |
コード長 | 637 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 87,068 KB |
実行使用メモリ | 102,216 KB |
最終ジャッジ日時 | 2023-09-05 22:41:24 |
合計ジャッジ時間 | 4,521 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
73,184 KB |
testcase_01 | AC | 101 ms
72,848 KB |
testcase_02 | AC | 99 ms
73,256 KB |
testcase_03 | AC | 99 ms
72,900 KB |
testcase_04 | AC | 98 ms
72,900 KB |
testcase_05 | AC | 100 ms
72,844 KB |
testcase_06 | AC | 100 ms
72,996 KB |
testcase_07 | AC | 132 ms
87,952 KB |
testcase_08 | AC | 172 ms
87,320 KB |
testcase_09 | AC | 160 ms
84,644 KB |
testcase_10 | AC | 163 ms
85,652 KB |
testcase_11 | AC | 162 ms
85,688 KB |
testcase_12 | AC | 156 ms
85,556 KB |
testcase_13 | AC | 158 ms
85,884 KB |
testcase_14 | AC | 157 ms
85,228 KB |
testcase_15 | AC | 159 ms
85,944 KB |
testcase_16 | AC | 173 ms
91,428 KB |
testcase_17 | AC | 154 ms
102,216 KB |
testcase_18 | AC | 179 ms
93,444 KB |
testcase_19 | AC | 116 ms
89,136 KB |
ソースコード
# 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)