結果

問題 No.471 直列回転機
ユーザー kotatsugamekotatsugame
提出日時 2020-02-17 07:09:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 500 ms / 3,141 ms
コード長 415 bytes
コンパイル時間 629 ms
コンパイル使用メモリ 63,380 KB
実行使用メモリ 24,384 KB
平均クエリ数 19589.39
最終ジャッジ日時 2023-09-02 04:01:22
合計ジャッジ時間 17,988 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,292 KB
testcase_01 AC 25 ms
23,448 KB
testcase_02 AC 25 ms
23,736 KB
testcase_03 AC 24 ms
23,628 KB
testcase_04 AC 24 ms
24,036 KB
testcase_05 AC 26 ms
23,616 KB
testcase_06 AC 24 ms
23,748 KB
testcase_07 AC 26 ms
23,664 KB
testcase_08 AC 68 ms
23,448 KB
testcase_09 AC 68 ms
23,532 KB
testcase_10 AC 45 ms
24,204 KB
testcase_11 AC 208 ms
23,340 KB
testcase_12 AC 403 ms
23,640 KB
testcase_13 AC 424 ms
23,304 KB
testcase_14 AC 459 ms
23,640 KB
testcase_15 AC 500 ms
24,216 KB
testcase_16 AC 27 ms
23,436 KB
testcase_17 AC 24 ms
23,436 KB
testcase_18 AC 25 ms
23,748 KB
testcase_19 AC 25 ms
23,508 KB
testcase_20 AC 477 ms
23,496 KB
testcase_21 AC 113 ms
23,964 KB
testcase_22 AC 415 ms
23,436 KB
testcase_23 AC 407 ms
23,544 KB
testcase_24 AC 238 ms
23,736 KB
testcase_25 AC 87 ms
23,688 KB
testcase_26 AC 474 ms
23,556 KB
testcase_27 AC 223 ms
23,292 KB
testcase_28 AC 276 ms
23,328 KB
testcase_29 AC 311 ms
24,024 KB
testcase_30 AC 133 ms
23,544 KB
testcase_31 AC 474 ms
24,384 KB
testcase_32 AC 392 ms
23,616 KB
testcase_33 AC 320 ms
24,324 KB
testcase_34 AC 463 ms
23,940 KB
testcase_35 AC 112 ms
23,736 KB
testcase_36 AC 189 ms
23,520 KB
testcase_37 AC 62 ms
23,628 KB
testcase_38 AC 97 ms
23,340 KB
testcase_39 AC 164 ms
23,928 KB
testcase_40 AC 321 ms
23,736 KB
testcase_41 AC 479 ms
23,748 KB
testcase_42 AC 308 ms
24,204 KB
testcase_43 AC 436 ms
24,228 KB
testcase_44 AC 64 ms
23,292 KB
testcase_45 AC 291 ms
24,216 KB
testcase_46 AC 335 ms
23,448 KB
testcase_47 AC 443 ms
23,628 KB
testcase_48 AC 387 ms
23,340 KB
testcase_49 AC 369 ms
23,292 KB
testcase_50 AC 438 ms
23,640 KB
testcase_51 AC 186 ms
24,156 KB
testcase_52 AC 29 ms
24,216 KB
testcase_53 AC 31 ms
23,952 KB
testcase_54 AC 29 ms
23,556 KB
testcase_55 AC 119 ms
23,352 KB
testcase_56 AC 101 ms
23,340 KB
testcase_57 AC 79 ms
24,384 KB
testcase_58 AC 46 ms
23,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:5:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    5 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
int M;
int X[50000],Y[50000];
main()
{
	cin>>M;
	for(int i=0;i<M;i++)cin>>X[i]>>Y[i];
	cout<<"? 0 0"<<endl;
	int bx,by;cin>>bx>>by;
	cout<<"? 1 0"<<endl;
	int a1x,a1y;cin>>a1x>>a1y;a1x-=bx;a1y-=by;
	cout<<"? 0 1"<<endl;
	int a2x,a2y;cin>>a2x>>a2y;a2x-=bx;a2y-=by;
	cout<<"!"<<endl;
	for(int i=0;i<M;i++)
	{
		cout<<a1x*X[i]+a2x*Y[i]+bx<<" "<<a1y*X[i]+a2y*Y[i]+by<<endl;
	}
}
0