結果
| 問題 | No.2610 Decreasing LCMs |
| コンテスト | |
| ユーザー |
C
|
| 提出日時 | 2026-11-23 22:57:40 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 858µs | |
| コード長 | 1,078 bytes |
| 記録 | |
| コンパイル時間 | 6,581 ms |
| コンパイル使用メモリ | 418,580 KB |
| 実行使用メモリ | 9,840 KB |
| 最終ジャッジ日時 | 2026-11-23 23:03:21 |
| 合計ジャッジ時間 | 8,771 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 |
ソースコード
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC optimize("O3")
#if defined(__x86_64__) || defined(__i386__)
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#endif
#endif
#include <bits/stdc++.h>
#include <atcoder/all>
#define each(x, v) for (auto&& x : v)
#define each2(x, y, v) for (auto&& [x, y] : v)
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define rrep(i,a,b) for(int i=(b)-1;i>=(a);i--)
#define all(x) begin(x),end(x)
#define sz(x) (int)(x).size()
using namespace std;
using namespace atcoder;
using ll=long long;
using ull=unsigned long long;
using ld=long double;
using vll=vector<ll>;
using vvll=vector<vll>;
using vi=vector<int>;
using vvi=vector<vi>;
using pll=pair<ll,ll>;
using pi=pair<int,int>;
// using mint=modint998244353;
// using mint=modint1000000007;
// using mint2=static_modint<2>;
// using mint=LazyMontgomeryModInt<998244353>;
// using vm=vector<mint>;
// using vvm=vector<vm>;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
rep(i,1,N)cout<<((1LL<<(N-2))+(1LL<<(i-1)))<<' ';
cout<<(1LL<<N)<<'\n';
}
C