結果
問題 |
No.1351 Sum of GCD Equals LCM
|
ユーザー |
![]() |
提出日時 | 2021-01-17 16:21:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 1,970 ms |
コンパイル使用メモリ | 194,140 KB |
最終ジャッジ日時 | 2025-01-18 01:27:36 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 50 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ int n; cin >> n; vector<ll> a(n); a[0] = 1; for(int i = 0; i < n-1; i++) a[i+1] = 2*a[i]; for(int i = 0; i < n; i++) cout << a[i] << " "; cout << endl; return 0; }