結果
問題 | No.514 宝探し3 |
ユーザー | CleyL |
提出日時 | 2020-03-19 02:41:11 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 63,168 KB |
実行使用メモリ | 24,084 KB |
平均クエリ数 | 3.08 |
最終ジャッジ日時 | 2023-09-24 03:09:47 |
合計ジャッジ時間 | 1,790 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
23,904 KB |
testcase_01 | AC | 23 ms
23,808 KB |
testcase_02 | AC | 20 ms
24,036 KB |
testcase_03 | AC | 22 ms
23,916 KB |
testcase_04 | AC | 19 ms
23,628 KB |
testcase_05 | AC | 19 ms
24,012 KB |
testcase_06 | AC | 19 ms
23,496 KB |
testcase_07 | AC | 20 ms
23,592 KB |
testcase_08 | AC | 21 ms
24,084 KB |
testcase_09 | AC | 20 ms
23,424 KB |
testcase_10 | AC | 20 ms
24,024 KB |
testcase_11 | AC | 19 ms
23,388 KB |
ソースコード
#include <iostream> using namespace std; int main(){ cout << "0 0" << endl; int n;cin>>n; if(!n){return 0;} int b=n/2; int a=b+n%2; cout << a << " " << b << endl; cin>>n; if(!n){return 0;} n/=2; cout << a-n << " " << b+n << endl; int t;cin>>t; if(t)cout << a+n << " " << b-n << endl; }