結果
問題 | No.8109 GCD between Permutations |
ユーザー |
![]() |
提出日時 | 2024-04-01 21:49:09 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 5,759 ms |
コンパイル使用メモリ | 306,672 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-09-30 22:17:38 |
合計ジャッジ時間 | 6,675 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 28 |
ソースコード
#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;}