結果

問題 No.514 宝探し3
コンテスト
ユーザー Naoyk1212
提出日時 2017-06-06 00:13:15
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 340 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 532 ms
コンパイル使用メモリ 91,944 KB
実行使用メモリ 28,976 KB
平均クエリ数 3.00
最終ジャッジ日時 2026-03-31 02:00:32
合計ジャッジ時間 1,934 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <iomanip>
#include <stack>
#include <queue>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
using namespace std;

signed main(){
    int a, b;
    cout << 0 << " " << 0 << endl;
    cin >> a;
    cout << a << " " << 0 << endl;
    cin >> b;

    cout << a - b / 2 << " " << b / 2 << endl;
}
0