結果
問題 | No.282 おもりと天秤(2) |
ユーザー | okaduki |
提出日時 | 2015-09-18 23:14:09 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,293 bytes |
コンパイル時間 | 1,777 ms |
コンパイル使用メモリ | 146,664 KB |
実行使用メモリ | 24,312 KB |
平均クエリ数 | 1535.08 |
最終ジャッジ日時 | 2023-09-23 05:58:05 |
合計ジャッジ時間 | 15,274 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
23,592 KB |
testcase_01 | AC | 312 ms
23,484 KB |
testcase_02 | AC | 88 ms
23,784 KB |
testcase_03 | AC | 51 ms
23,508 KB |
testcase_04 | AC | 34 ms
23,952 KB |
testcase_05 | AC | 189 ms
23,556 KB |
testcase_06 | AC | 396 ms
24,312 KB |
testcase_07 | AC | 34 ms
23,568 KB |
testcase_08 | AC | 401 ms
23,736 KB |
testcase_09 | AC | 25 ms
23,496 KB |
testcase_10 | WA | - |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
ソースコード
#include <bits/stdc++.h> using namespace std; //typedef //------------------------------------------ typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<string> VS; typedef pair<int, int> PII; typedef long long LL; //container util //------------------------------------------ #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(), (a).rend() #define PB push_back #define MP make_pair #define SZ(a) int((a).size()) #define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i) #define EXIST(s,e) ((s).find(e)!=(s).end()) #define SORT(c) sort((c).begin(),(c).end()) //repetition //------------------------------------------ #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) //constant //-------------------------------------------- const double EPS = 1e-10; const double PI = acos(-1.0); int main(){ cin.tie(0); ios_base::sync_with_stdio(false); int N; cin >> N; cin.ignore(); VI xs(N); REP(i,N) xs[i] = i+1; string S; REP(i,N-1) S += " 0 0"; for(int i=N-1;i>=0;--i){ for(int j=0;j<i;++j){ cout << "? " << xs[j] << " " << xs[j+1] << S << endl; string in; getline(cin,in); if(in[0] == '>') swap(xs[j],xs[j+1]); } } cout << "!"; REP(i,N) cout << " " << xs[i]; cout << endl; return 0; }