結果

問題 No.513 宝探し2
ユーザー karinohito
提出日時 2024-09-13 09:48:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 1,826 ms
コンパイル使用メモリ 191,676 KB
最終ジャッジ日時 2025-02-24 06:52:43
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {

    
    cout<<"0 0"<<endl;
    ll P,Q;
    cin>>P;
    cout<<"0 1000000000"<<endl;
    cin>>Q;
    ll x=(P+Q-1e9)/2;
    ll y=P-x;
    cout<<x<<" "<<y<<endl;
    cin>>x;
}
0