結果

問題 No.513 宝探し2
ユーザー BantakoBantako
提出日時 2017-08-12 19:52:13
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 1,361 ms
コンパイル使用メモリ 163,036 KB
実行使用メモリ 24,264 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:29:47
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,964 KB
testcase_01 AC 22 ms
23,388 KB
testcase_02 AC 22 ms
23,736 KB
testcase_03 AC 21 ms
23,964 KB
testcase_04 AC 23 ms
23,316 KB
testcase_05 AC 22 ms
23,448 KB
testcase_06 AC 22 ms
23,916 KB
testcase_07 AC 23 ms
23,688 KB
testcase_08 AC 22 ms
23,844 KB
testcase_09 AC 22 ms
24,252 KB
testcase_10 AC 23 ms
23,604 KB
testcase_11 AC 22 ms
24,264 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(){
    int d1,d2;
    cout << 0 << " " << 0 << endl;
    fflush(0);
    cin >> d1;
    cout << 100000 << " " << 0 << endl;
    fflush(0);
    cin >> d2;
    d2 -= 100000;
    cout << (d1-d2)/2 << " " << (d1+d2)/2;
    fflush(0);
}
0