結果

問題 No.514 宝探し3
ユーザー BantakoBantako
提出日時 2017-08-12 19:53:56
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 1,386 ms
コンパイル使用メモリ 163,244 KB
実行使用メモリ 24,444 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 14:21:44
合計ジャッジ時間 2,585 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,520 KB
testcase_01 AC 23 ms
24,444 KB
testcase_02 AC 23 ms
23,472 KB
testcase_03 AC 22 ms
23,976 KB
testcase_04 AC 22 ms
23,880 KB
testcase_05 AC 23 ms
23,400 KB
testcase_06 AC 23 ms
23,832 KB
testcase_07 AC 22 ms
23,364 KB
testcase_08 AC 22 ms
23,424 KB
testcase_09 AC 23 ms
24,336 KB
testcase_10 AC 23 ms
23,460 KB
testcase_11 AC 22 ms
23,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:6:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    6 | main(){
      | ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9+7;
main(){
    ll d1,d2;
    cout << 0 << " " << 0 << endl;
    fflush(0);
    cin >> d1;
    cout << 1000000000 << " " << 0 << endl;
    fflush(0);
    cin >> d2;
    d2 -= 1000000000;
    cout << (d1-d2)/2 << " " << (d1+d2)/2;
    fflush(0);
}
0