結果
| 問題 |
No.471 直列回転機
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-17 07:08:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 604 ms |
| コンパイル使用メモリ | 63,844 KB |
| 実行使用メモリ | 25,452 KB |
| 平均クエリ数 | 19589.39 |
| 最終ジャッジ日時 | 2024-07-16 19:32:11 |
| 合計ジャッジ時間 | 21,647 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 WA * 53 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
5 | main()
| ^~~~
ソースコード
#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;
cout<<"? 0 1"<<endl;
int a2x,a2y;cin>>a2x>>a2y;
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;
}
}