結果
| 問題 | No.355 数当てゲーム(2) |
| コンテスト | |
| ユーザー |
tubo28
|
| 提出日時 | 2016-04-02 00:06:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 1,987 bytes |
| 記録 | |
| コンパイル時間 | 1,325 ms |
| コンパイル使用メモリ | 167,144 KB |
| 実行使用メモリ | 1,638,192 KB |
| 最終ジャッジ日時 | 2024-07-16 09:30:24 |
| 合計ジャッジ時間 | 5,546 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 1 -- * 51 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template<class T> ostream &operator << (ostream &os, const vector<T> &);
template<size_t n, class...T> typename enable_if<(n>=sizeof...(T))>::type _ot(ostream &, const tuple<T...> &){}
template<size_t n, class...T> typename enable_if<(n< sizeof...(T))>::type _ot(ostream &os, const tuple<T...> &t){
os << (n == 0 ? "" : " ") << get<n>(t); _ot<n+1>(os, t);
}
template<class...T> ostream &operator << (ostream &os, const tuple<T...> &t){
_ot<0>(os, t); return os;
}
template<class T, class U> ostream & operator << (ostream &os, const pair<T,U> &p){
return os << "(" << p.first << ", " << p.second << ") ";
}
template<class T> ostream &operator << (ostream &os, const vector<T> &v){
for(size_t i = 0; i < v.size(); i++) os << v[i] << (i + 1 == v.size() ? "" : ", "); return os;
}
#ifdef DEBUG
#define dump(...) (cerr << #__VA_ARGS__ << " = " << make_tuple(__VA_ARGS__) \
<< " (L : " << __LINE__ << ")" << endl)
#else
#define dump(...)
#endif
#define all(c) begin(c), end(c)
#define range(i,a,b) for(int i = a; i < (int)(b); i++)
#define rep(i,b) range(i,0,b)
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
using ll = long long;
// #define int ll
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int,int>;
void fastios(){ ios_base::sync_with_stdio(0); cin.tie(0); }
int const mod = 1000000007;
auto const inf = numeric_limits<int>::max()/8;
pii ask(vector<int> a){
cout << a[0] << ' ' << a[1] << ' ' << a[2] << ' ' << a[3] << endl;
int x,y;
cin >> x >> y;
return {x,y};
}
int main(){
vector<int> b;
rep(i,10){
int x;
tie(x,ignore) = ask({i,i,i,i});
if(x == 4) exit(0);
rep(j,x) b.pb(i);
}
sort(all(b));
do {
int x;
tie(x,ignore) = ask(b);
if(x == 4) exit(0);
} while(next_permutation(all(b)));
}
tubo28