結果
問題 | No.513 宝探し2 |
ユーザー | CleyL |
提出日時 | 2020-03-19 02:40:06 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 572 ms |
コンパイル使用メモリ | 62,460 KB |
実行使用メモリ | 24,000 KB |
平均クエリ数 | 3.08 |
最終ジャッジ日時 | 2023-09-24 02:32:36 |
合計ジャッジ時間 | 1,573 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
23,652 KB |
testcase_01 | AC | 20 ms
23,340 KB |
testcase_02 | AC | 19 ms
24,000 KB |
testcase_03 | AC | 20 ms
23,676 KB |
testcase_04 | AC | 20 ms
23,412 KB |
testcase_05 | AC | 20 ms
23,424 KB |
testcase_06 | AC | 19 ms
23,364 KB |
testcase_07 | AC | 21 ms
23,352 KB |
testcase_08 | AC | 21 ms
24,000 KB |
testcase_09 | AC | 21 ms
23,652 KB |
testcase_10 | AC | 20 ms
23,376 KB |
testcase_11 | AC | 21 ms
23,352 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; }