結果

問題 No.513 宝探し2
ユーザー 👑 obakyanobakyan
提出日時 2019-05-01 10:37:30
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 530 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 71,148 KB
実行使用メモリ 24,348 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 02:14:26
合計ジャッジ時間 1,946 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
23,388 KB
testcase_01 AC 23 ms
23,688 KB
testcase_02 AC 24 ms
23,400 KB
testcase_03 AC 24 ms
23,664 KB
testcase_04 AC 24 ms
23,460 KB
testcase_05 AC 25 ms
24,348 KB
testcase_06 AC 25 ms
24,000 KB
testcase_07 AC 24 ms
23,616 KB
testcase_08 AC 25 ms
23,988 KB
testcase_09 AC 24 ms
23,412 KB
testcase_10 AC 24 ms
23,988 KB
testcase_11 AC 25 ms
23,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>
#define L64 long long
#define MOD (1000000007LL)

int main(void)
{
  L64 a, b;
  L64 x, y;
  std::cout << "0 0" << std::endl << std::flush;
  std::cin >> a;
  if(a == 0){
    return 0;
  }
  std::cout << a << " 0" << std::endl << std::flush;
  std::cin >> b;
  y = b / 2;
  x = a - y;
  std::cout << x << " " << y << std::endl << std::flush;
  std::cin >> b;
}
0