結果

問題 No.3109 GCD between Permutations
ユーザー てんぷらてんぷら
提出日時 2024-04-01 21:49:09
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 511 bytes
コンパイル時間 5,336 ms
コンパイル使用メモリ 306,780 KB
実行使用メモリ 24,012 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-04-01 21:49:18
合計ジャッジ時間 8,184 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,012 KB
testcase_01 AC 22 ms
24,012 KB
testcase_02 AC 23 ms
24,012 KB
testcase_03 AC 23 ms
24,012 KB
testcase_04 AC 32 ms
24,012 KB
testcase_05 AC 23 ms
24,012 KB
testcase_06 AC 23 ms
24,012 KB
testcase_07 AC 22 ms
24,012 KB
testcase_08 AC 23 ms
24,012 KB
testcase_09 AC 23 ms
24,012 KB
testcase_10 AC 23 ms
24,012 KB
testcase_11 AC 23 ms
24,012 KB
testcase_12 AC 23 ms
24,012 KB
testcase_13 AC 25 ms
24,012 KB
testcase_14 AC 23 ms
24,012 KB
testcase_15 AC 39 ms
24,012 KB
testcase_16 AC 23 ms
24,012 KB
testcase_17 AC 23 ms
24,012 KB
testcase_18 AC 23 ms
24,012 KB
testcase_19 AC 23 ms
24,012 KB
testcase_20 AC 23 ms
24,012 KB
testcase_21 AC 24 ms
24,012 KB
testcase_22 AC 23 ms
24,012 KB
testcase_23 AC 24 ms
24,012 KB
testcase_24 AC 25 ms
24,012 KB
testcase_25 AC 48 ms
24,012 KB
testcase_26 AC 24 ms
24,000 KB
testcase_27 AC 24 ms
24,000 KB
testcase_28 AC 23 ms
24,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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