#include #include #include using namespace std; int main(){ int x_position; cout << "? 0 0 0" << endl; int back; cin >> back; int left = -100; int right = 100; int middle = 0; while(left < right){ cout << "? " << middle - 1 << " 0 0" << endl; int distance; cin >> distance; if(distance < back){ right = middle; }else{ left = middle; } middle = (left + right) / 2; } x_position = left; left = -100; right = 100; middle = 0; int y_position; while(left < right){ cout << "? 0 " << middle - 1 << " 0" << endl; int distance; cin >> distance; if(distance < back){ right = middle; }else{ left = middle; } middle = (left + right) / 2; } y_position = left; left = -100; right = 100; middle = 0; int z_position; while(left < right){ cout << "? 0 0 " << middle - 1 << endl; int distance; cin >> distance; if(distance < back){ right = middle; }else{ left = middle; } middle = (left + right) / 2; } z_position = left; cout << "! " << x_position << " " << y_position << " " << z_position << endl; }