結果
| 問題 |
No.471 直列回転機
|
| コンテスト | |
| ユーザー |
hirokazu1020
|
| 提出日時 | 2016-12-21 22:47:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 502 ms / 3,141 ms |
| コード長 | 1,028 bytes |
| コンパイル時間 | 998 ms |
| コンパイル使用メモリ | 93,600 KB |
| 実行使用メモリ | 25,592 KB |
| 平均クエリ数 | 19589.39 |
| 最終ジャッジ日時 | 2024-06-11 10:31:53 |
| 合計ジャッジ時間 | 17,967 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 58 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#include<sstream>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<cmath>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<numeric>
#include<functional>
#include<algorithm>
#include<bitset>
#include<tuple>
#include<unordered_set>
#include<random>
using namespace std;
#define INF (1<<29)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define uniq(v) v.erase(unique(all(v)),v.end())
int m;
int x[50000], y[50000];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> m;
rep(i,m) {
cin >> x[i] >> y[i];
}
int cx, cy;
cout << "? 0 0" << endl;
cin >> cx >> cy;
int mxx, mxy;
int myx, myy;
cout << "? 1 0" << endl;
cin >> mxx >> mxy;
mxx -= cx;
mxy -= cy;
cout << "? 0 1" << endl;
cin >> myx >> myy;
myx -= cx;
myy -= cy;
cout << "!" << endl;
rep(i,m) {
cout << mxx*x[i] + myx*y[i] + cx << ' ' << mxy*x[i] + myy*y[i] + cy << endl;
}
return 0;
}
hirokazu1020