結果
問題 |
No.796 well known
|
ユーザー |
|
提出日時 | 2024-03-28 18:20:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 4,356 ms |
コンパイル使用メモリ | 249,796 KB |
最終ジャッジ日時 | 2025-02-20 14:17:34 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int main() { int n; cin >> n; cout << "1 3"; if (n % 2 == 0) { for (int i = 0; i < (n - 2) / 2; i++) { cout << " 1 2"; } } else { for (int i = 0; i < n - 2; i++) { cout << " 3"; } } cout << endl; return 0; }