結果

問題 No.8109 GCD between Permutations
コンテスト
ユーザー てんぷら
提出日時 2024-04-01 21:49:09
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 511 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,098 ms
コンパイル使用メモリ 373,924 KB
実行使用メモリ 29,936 KB
平均クエリ数 1.00
最終ジャッジ日時 2026-04-16 23:35:01
合計ジャッジ時間 6,536 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <atcoder/all>
#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
using namespace std;
using namespace atcoder;
using mint = modint998244353;
const int inf = 1000000007;
const ll longinf = 1ll << 60;

int main() {
    int n;
    cin >> n;
    cout << '!';
    rep(i, n) cout << " " << i + 1;
    rep(i, n) cout << " " << i + 1;
    cout << endl;
    return 0;
}
0