結果

問題 No.471 直列回転機
ユーザー koyumeishi
提出日時 2016-12-12 23:46:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 866 ms
コンパイル使用メモリ 69,912 KB
実行使用メモリ 25,704 KB
平均クエリ数 39171.78
最終ジャッジ日時 2024-07-16 11:28:15
合計ジャッジ時間 24,839 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7 WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;
int main(){
	int m;
	cin >> m;
	vector<int> x(m), y(m);
	for(int i=0; i<m; i++){
		cin >> x[i] >> y[i];
	}

	vector<int> x_(m), y_(m);
	for(int i=0; i<m; i++){
		cout << "? " << x[i] << " " << y[i] << endl;
		cin >> x_[i] >> y_[i];
	}

	cout << "!" << endl;
	for(int i=0; i<m; i++){
		cout << x_[i] << " " << y_[i] << endl;
	}
	return 0;
}
0