結果
| 問題 | No.2092 Conjugation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-22 10:04:56 |
| 言語 | C++17(clang) (clang++ 22.1.8 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 10 ms / 2,000 ms |
| + 235µs | |
| コード長 | 433 bytes |
| 記録 | |
| コンパイル時間 | 7,043 ms |
| コンパイル使用メモリ | 165,996 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-09-28 02:26:44 |
| 合計ジャッジ時間 | 9,596 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n; cin >> n;
vector<int> A(n);
for(auto& v : A) cin >> v;
int mx = *max_element(A.begin(), A.end());
int j = n - 1;
for(int i = 1; i <= mx; ++i) {
while(j >= 0 && A[j] < i) --j;
cout << j + 1 << " ";
}
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t = 1;
//cin >> t;
while(t--) solve();
}