結果

問題 No.513 宝探し2
ユーザー Bantako
提出日時 2017-08-12 19:52:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 1,584 ms
コンパイル使用メモリ 166,848 KB
実行使用メモリ 25,476 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-17 01:23:28
合計ジャッジ時間 2,686 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-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