結果
問題 |
No.2496 LCM between Permutations
|
ユーザー |
|
提出日時 | 2023-09-06 09:53:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 581 bytes |
コンパイル時間 | 3,961 ms |
コンパイル使用メモリ | 250,620 KB |
最終ジャッジ日時 | 2025-02-16 19:01:56 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 1 WA * 27 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; struct Fast { Fast() { std::cin.tie(nullptr); ios::sync_with_stdio(false); cout << setprecision(10); } } fast; #define rep(i, a, b) for (int(i) = (a); (i) < (int)(b); (i)++) int guess(int i, int j) { cout << "? " << (i + 1) << " " << (j + 1) << endl; int l; cin >> l; return l; } int main() { int n; cin >> n; rep(i, 0, 3 * n) guess(0, 0); cout << "!"; rep(i, 0, n) cout << " " << (i + 1); rep(i, 0, n) cout << " " << (i + 1); cout << endl; }