結果
| 問題 | No.471 直列回転機 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-10-19 14:19:19 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 447 bytes | 
| コンパイル時間 | 2,643 ms | 
| コンパイル使用メモリ | 192,788 KB | 
| 最終ジャッジ日時 | 2025-01-15 11:45:02 | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 1 | 
| other | AC * 5 WA * 53 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         int n; scanf("%d",&n);
      |                ~~~~~^~~~~~~~~
main.cpp:11:23: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         rep(i,n) scanf("%d%d",&x[i],&y[i]);
      |                  ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:16:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |         scanf("%lld%lld",&a,&c);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:19:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |         scanf("%lld%lld",&b,&d);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
            
            ソースコード
#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]);
	lint a,b,c,d;
	puts("? 1 0");
	fflush(stdout);
	scanf("%lld%lld",&a,&c);
	puts("? 0 1");
	fflush(stdout);
	scanf("%lld%lld",&b,&d);
	puts("!");
	rep(i,n) printf("%lld %lld\n",a*x[i]+b*y[i],c*x[i]+d*y[i]);
	fflush(stdout);
	return 0;
}
            
            
            
        