結果

問題 No.1429 Simple Dowsing
ユーザー okkuukenkenokkuukenken
提出日時 2022-07-19 14:19:11
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 1,179 ms
コンパイル使用メモリ 128,192 KB
実行使用メモリ 24,360 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-14 09:11:59
合計ジャッジ時間 3,362 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,496 KB
testcase_01 AC 25 ms
23,700 KB
testcase_02 AC 26 ms
23,568 KB
testcase_03 AC 25 ms
24,288 KB
testcase_04 AC 26 ms
23,400 KB
testcase_05 AC 26 ms
24,360 KB
testcase_06 AC 26 ms
23,976 KB
testcase_07 AC 26 ms
23,484 KB
testcase_08 AC 25 ms
24,336 KB
testcase_09 AC 25 ms
23,496 KB
testcase_10 AC 25 ms
24,276 KB
testcase_11 AC 25 ms
24,348 KB
testcase_12 AC 26 ms
24,072 KB
testcase_13 AC 25 ms
23,508 KB
testcase_14 AC 26 ms
23,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
#include<iomanip>
#include<numeric>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<random>
using namespace std;
typedef long long ll;
const int mod=998244353;
int main(){
	int d1,d2;
	cout<<"? 0 0"<<endl;
	cin>>d1;
	cout<<"? 100 0"<<endl;
	cin>>d2;
	int r=(d1-d2+10000)/200,s=sqrt(d1-r*r);
	cout<<"! "<<r<<' '<<s<<endl;
}
0