結果
問題 |
No.2092 Conjugation
|
ユーザー |
![]() |
提出日時 | 2023-03-10 06:18:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 537 bytes |
コンパイル時間 | 3,404 ms |
コンパイル使用メモリ | 250,280 KB |
最終ジャッジ日時 | 2025-02-11 07:15:46 |
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll inf=1555505555; ll mod=1000000007; int main(){ ll n; cin >> n; vector<ll>a(n); vector<ll>memo(200000,0); for (ll i = 0; i < n; i++) { cin >> a[i]; memo[a[0]-a[i]]+=1; } for (ll i = 1; i <a[0]; i++) { memo[i]+=memo[i-1]; } for (ll i = a[0]-1; i >=0; i--) { cout << memo[i] << ' '; } }