結果
問題 | No.2092 Conjugation |
ユーザー | sorag |
提出日時 | 2022-10-07 21:39:28 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 646 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 79,448 KB |
実行使用メモリ | 9,016 KB |
最終ジャッジ日時 | 2023-09-03 00:55:10 |
合計ジャッジ時間 | 12,528 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
8,264 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 2 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | AC | 2 ms
4,376 KB |
testcase_07 | AC | 8 ms
4,376 KB |
testcase_08 | AC | 1,566 ms
4,376 KB |
testcase_09 | AC | 635 ms
4,376 KB |
testcase_10 | AC | 802 ms
4,376 KB |
testcase_11 | AC | 826 ms
4,380 KB |
testcase_12 | AC | 591 ms
4,380 KB |
testcase_13 | AC | 192 ms
4,380 KB |
testcase_14 | AC | 107 ms
4,376 KB |
testcase_15 | AC | 570 ms
4,376 KB |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
ソースコード
#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; }