結果

問題 No.471 直列回転機
ユーザー KlayKlay
提出日時 2017-05-10 21:11:30
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 687 bytes
コンパイル時間 2,301 ms
コンパイル使用メモリ 51,884 KB
実行使用メモリ 24,528 KB
平均クエリ数 19589.39
最終ジャッジ日時 2023-09-23 14:01:02
合計ジャッジ時間 26,419 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,508 KB
testcase_01 AC 26 ms
23,664 KB
testcase_02 AC 25 ms
23,832 KB
testcase_03 AC 25 ms
24,384 KB
testcase_04 AC 25 ms
23,640 KB
testcase_05 AC 28 ms
24,384 KB
testcase_06 AC 26 ms
24,048 KB
testcase_07 AC 27 ms
23,532 KB
testcase_08 AC 110 ms
23,628 KB
testcase_09 AC 109 ms
24,396 KB
testcase_10 AC 63 ms
24,324 KB
testcase_11 AC 358 ms
24,024 KB
testcase_12 WA -
testcase_13 AC 764 ms
23,844 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 29 ms
24,408 KB
testcase_17 AC 27 ms
23,628 KB
testcase_18 AC 27 ms
23,388 KB
testcase_19 AC 26 ms
24,372 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 744 ms
24,024 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 877 ms
23,424 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 543 ms
23,448 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 852 ms
24,036 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 100 ms
23,400 KB
testcase_38 AC 153 ms
23,388 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 867 ms
23,424 KB
testcase_42 AC 554 ms
24,336 KB
testcase_43 WA -
testcase_44 AC 76 ms
23,376 KB
testcase_45 WA -
testcase_46 AC 616 ms
24,024 KB
testcase_47 WA -
testcase_48 AC 666 ms
23,604 KB
testcase_49 AC 683 ms
23,640 KB
testcase_50 AC 790 ms
23,676 KB
testcase_51 WA -
testcase_52 AC 29 ms
24,036 KB
testcase_53 AC 30 ms
23,664 KB
testcase_54 AC 29 ms
24,408 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(void)
{
	int M;
	
	std::cin >> M;
	
	double x[M];
	double y[M];
	
	for(int i = 0; i < M; i ++)
	{
		std::cin >> x[i] >> y[i];
	}

	double a, b, c, d, e, f, buff_x, buff_y;
	
	std::cout << "? 0 0" << std::endl;
	std::cin >> c >> f;
	
	std::cout << "? 0 1" << std::endl;
	std::cin >> buff_x >> buff_y;
	b = buff_x - c;
	e = buff_y - f;
	
	std::cout << "? 1 0" << std::endl;
	std::cin >> buff_x >> buff_y;
	a = buff_x - c;
	d = buff_y - f;
	
	std::cout << "!" << std::endl;
	
	for(int i = 0; i < M; i ++)
	{
		buff_x = a * x[i] + b * y[i] + c;
		buff_y = d * x[i] + e * y[i] + f;
	
		std::cout << buff_x << " " << buff_y << std::endl;
	}

	return 0;
}








0