結果
問題 |
No.2092 Conjugation
|
ユーザー |
|
提出日時 | 2022-09-15 07:47:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 506 bytes |
コンパイル時間 | 1,701 ms |
コンパイル使用メモリ | 197,408 KB |
最終ジャッジ日時 | 2025-02-07 05:37:22 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 TLE * 1 |
ソースコード
#include<bits/stdc++.h> #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 1; i <= a[0]; i++) { int cnt = 0; for (int j = 0; j < n; j++) { if (a[j] >= i) { cnt++; } else { break; } } cout << cnt; if (i < a[0]) { cout << " "; } } return 0; }