結果
| 問題 | No.594 壊れた宝物発見機 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-11-11 00:34:16 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 1,386 bytes | 
| コンパイル時間 | 1,959 ms | 
| コンパイル使用メモリ | 192,220 KB | 
| 最終ジャッジ日時 | 2025-01-05 03:59:51 | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 20 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
#define P(x) cout << (x) << "\n"
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define vv(type, c, m, n, i) vector<vector<type>> c(m, vector<type>(n, i))
#define rep(i,a,n) for(int i=(a), i##_len=(n); i<i##_len; ++i)
#define rrep(i,a,n) for(int i=(a), i##_len=(n); i>i##_len; --i)
#define len(x) ((int)(x).size())
#define mp make_pair
#define eb emplace_back
#define fi first
#define se second
#define chmax(a,b) if(a<b)a=b
#define chmin(a,b) if(a>b)a=b
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<long long> vll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef pair<int, int> pii;
int d[30];
int x[3] = {-100, 0, 100};
int y[3] = {-100, 0, 100};
int z[3] = {-100, 0, 100};
int main() {
	int cnt = 0;
	rep(i, 0, 3) rep(j, 0, 3) rep(k, 0, 3) {
		cout << "?" << x[i] << " " << y[j] << " " << z[k];
		cin >> d[cnt++];
	}
	cnt = 0;
	rep(i, 0, 3) rep(j, 0, 3) rep(k, 0, 3) {
		rep(x2, 0, 3) rep(y2, 0, 3) rep(z2, 0, 3) {
			if(hypot(hypot(double(x[x2] - i), double(y[y2] - j)), hypot(double(z[z2] - i), double(y[y2] - j))) == double(d[cnt++])) {
				continue;
			}
			cout << "!" << i << " " << j << " " << k;
			return 0;
		}
	}
	return 0;
}
            
            
            
        