結果
| 問題 |
No.2092 Conjugation
|
| コンテスト | |
| ユーザー |
tokumini_ss
|
| 提出日時 | 2022-10-07 21:23:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 2,000 ms |
| コード長 | 336 bytes |
| コンパイル時間 | 1,948 ms |
| コンパイル使用メモリ | 194,260 KB |
| 最終ジャッジ日時 | 2025-02-07 22:46:50 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t N;
cin >> N;
vector<int64_t> A(N);
for (int64_t& a : A) {
cin >> a;
}
for (int64_t j = 0; j < A[0]; j++) {
auto itr = upper_bound(A.rbegin(), A.rend(), j);
cout << N - (itr - A.rbegin()) << " \n"[j == A[0] - 1];
}
}
tokumini_ss