結果

問題 No.2610 Decreasing LCMs
ユーザー 蜜蜂蜜蜂
提出日時 2021-04-05 18:10:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 806 bytes
コンパイル時間 3,379 ms
コンパイル使用メモリ 230,600 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-27 20:07:59
合計ジャッジ時間 7,064 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

//WA check 3

#include <bits/stdc++.h>
using namespace std;

#include <atcoder/all>
using namespace atcoder;

using ll = long long;
using ld = long double;

using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vld = vector<ld>;
using vvld = vector<vld>;

#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(),a.end()
#define rep(i,start,end) for(ll i=start;i<(ll)(end);i++)
#define per(i,start,end) for(ll i=start;i>=(ll)(end);i--)

vll ans(int n){
  if(n==3){
    return {3,4,8};
  }

  vll res(n),v=ans(n-1);
  res[0]=v[0]*2-1;
  rep(i,1,n){
    res[i]=v[i-1]*2;
  }

  return res;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  int n;
  cin>>n;
  
  rep(i,0,n){
    cout<<100-i<<" ";
  }
  cout<<endl;
}
0