結果
| 問題 |
No.471 直列回転機
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2019-05-02 21:14:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 459 ms / 3,141 ms |
| コード長 | 641 bytes |
| コンパイル時間 | 1,479 ms |
| コンパイル使用メモリ | 74,664 KB |
| 実行使用メモリ | 25,580 KB |
| 平均クエリ数 | 19588.39 |
| 最終ジャッジ日時 | 2024-06-11 10:41:54 |
| 合計ジャッジ時間 | 15,362 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 58 |
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>
int main(void)
{
int m;
std::cin >> m;
std::vector<int> x(m);
std::vector<int> y(m);
for(int i = 0; i < m; i++){
std::cin >> x[i] >> y[i];
}
int a, b, c, s;
std::cout << "? 0 0" << std::endl;
std::cin >> a >> b;
std::cout << "? 1 0" << std::endl;
std::cin >> c >> s;
c -= a;
s -= b;
std::cout << "!" << std::endl;
for(int i = 0; i < m; i++){
std::cout << c * x[i] - s * y[i] + a << " " << s * x[i] + c * y[i] + b << std::endl;
}
}