結果

問題 No.471 直列回転機
ユーザー furafura
提出日時 2020-10-19 14:25:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 334 ms / 3,141 ms
コード長 593 bytes
コンパイル時間 1,884 ms
コンパイル使用メモリ 200,144 KB
実行使用メモリ 24,372 KB
平均クエリ数 19589.39
最終ジャッジ日時 2023-09-02 04:03:42
合計ジャッジ時間 13,903 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
23,520 KB
testcase_01 AC 26 ms
23,304 KB
testcase_02 AC 25 ms
23,364 KB
testcase_03 AC 25 ms
23,328 KB
testcase_04 AC 26 ms
23,328 KB
testcase_05 AC 27 ms
23,364 KB
testcase_06 AC 25 ms
23,556 KB
testcase_07 AC 26 ms
23,448 KB
testcase_08 AC 44 ms
23,412 KB
testcase_09 AC 50 ms
23,964 KB
testcase_10 AC 34 ms
23,532 KB
testcase_11 AC 143 ms
23,832 KB
testcase_12 AC 273 ms
24,228 KB
testcase_13 AC 272 ms
24,216 KB
testcase_14 AC 290 ms
23,160 KB
testcase_15 AC 334 ms
23,340 KB
testcase_16 AC 27 ms
23,640 KB
testcase_17 AC 25 ms
24,060 KB
testcase_18 AC 25 ms
23,472 KB
testcase_19 AC 25 ms
24,108 KB
testcase_20 AC 309 ms
23,568 KB
testcase_21 AC 90 ms
23,664 KB
testcase_22 AC 280 ms
23,376 KB
testcase_23 AC 251 ms
23,316 KB
testcase_24 AC 165 ms
24,216 KB
testcase_25 AC 72 ms
24,204 KB
testcase_26 AC 298 ms
24,204 KB
testcase_27 AC 155 ms
23,964 KB
testcase_28 AC 185 ms
23,292 KB
testcase_29 AC 198 ms
23,316 KB
testcase_30 AC 99 ms
24,240 KB
testcase_31 AC 297 ms
23,928 KB
testcase_32 AC 256 ms
23,760 KB
testcase_33 AC 194 ms
23,964 KB
testcase_34 AC 289 ms
23,292 KB
testcase_35 AC 90 ms
23,844 KB
testcase_36 AC 137 ms
23,388 KB
testcase_37 AC 48 ms
23,952 KB
testcase_38 AC 79 ms
24,204 KB
testcase_39 AC 115 ms
23,448 KB
testcase_40 AC 215 ms
24,216 KB
testcase_41 AC 304 ms
23,628 KB
testcase_42 AC 205 ms
24,228 KB
testcase_43 AC 266 ms
24,036 KB
testcase_44 AC 56 ms
23,304 KB
testcase_45 AC 198 ms
23,292 KB
testcase_46 AC 225 ms
23,316 KB
testcase_47 AC 280 ms
23,568 KB
testcase_48 AC 245 ms
23,448 KB
testcase_49 AC 236 ms
24,036 KB
testcase_50 AC 281 ms
23,424 KB
testcase_51 AC 134 ms
23,616 KB
testcase_52 AC 27 ms
23,736 KB
testcase_53 AC 28 ms
23,436 KB
testcase_54 AC 29 ms
23,748 KB
testcase_55 AC 97 ms
23,328 KB
testcase_56 AC 89 ms
24,372 KB
testcase_57 AC 65 ms
24,312 KB
testcase_58 AC 39 ms
23,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;
using lint=long long;

int main(){
	int n; scanf("%d",&n);
	vector<int> x(n),y(n);
	rep(i,n) scanf("%d%d",&x[i],&y[i]);

	/*
		    / a b c \
		A = | d e f |
			\ 0 0 1 /
	*/
	lint a,b,c,d,e,f;
	puts("? 0 0");
	fflush(stdout);
	scanf("%lld%lld",&c,&f);
	puts("? 1 0");
	fflush(stdout);
	scanf("%lld%lld",&a,&d);
	a-=c; d-=f;
	puts("? 0 1");
	fflush(stdout);
	scanf("%lld%lld",&b,&e);
	b-=c; e-=f;

	puts("!");
	rep(i,n) printf("%lld %lld\n",a*x[i]+b*y[i]+c,d*x[i]+e*y[i]+f);
	fflush(stdout);

	return 0;
}
0