結果
| 問題 |
No.1429 Simple Dowsing
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-03-25 12:33:51 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 559 bytes |
| コンパイル時間 | 2,026 ms |
| コンパイル使用メモリ | 192,000 KB |
| 最終ジャッジ日時 | 2025-01-19 21:37:49 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
typedef pair<int,int>P;
int a[101][101];
int b[101][101];
int main(){
for(int i=0;i<=100;i++){
for(int j=0;j<=100;j++){
a[i][j]=i*i+j*j;
b[i][j]=(100-i)*(100-i)+j*j;
}
}
int x,y;
cout<<"? 0 0"<<endl;
cin>>x;
cout<<"? 100 0"<<endl;
cin>>y;
for(int i=0;i<=100;i++){
for(int j=0;j<=100;j++){
if(a[i][j]==x && b[i][j]==y){
cout<<"! "<<x<<" "<<y<<endl;
return 0;
}
}
}
return 0;
}
chacoder1