結果
問題 | No.2092 Conjugation |
ユーザー |
![]() |
提出日時 | 2022-10-07 21:39:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 646 bytes |
コンパイル時間 | 805 ms |
コンパイル使用メモリ | 80,172 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-12 06:37:59 |
合計ジャッジ時間 | 12,328 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 TLE * 2 -- * 2 |
ソースコード
#include <iostream> #include<utility> #include <vector> #include <map> #include<string> #include<queue> #include<math.h> #define pb push_back #define all(x) begin(x),end(x) #define gall(x) begin(x),end(x),greater<>() #define ll long long #define P pair<int,int> #define lP pair<ll,ll> #include <iostream> #include <vector> using namespace std; int main() { int n,a1; cin>>n>>a1; vector<int> a(n+1); vector<int> b(a1+1,1); for(int i=2;i<=n;i++){ cin>>a[i]; for(int j=1;j<=a[i];j++){ b[j]++; } } for(int i=1;i<=a1;i++){ cout<<b[i]<<' '; } cout<<endl; return 0; }