結果

問題 No.514 宝探し3
コンテスト
ユーザー nenuon
提出日時 2017-05-06 13:20:40
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 69 ms / 2,000 ms
+ 999µs
コード長 548 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 481 ms
コンパイル使用メモリ 98,924 KB
実行使用メモリ 9,736 KB
平均クエリ数 2.92
最終ジャッジ日時 2026-10-31 09:19:15
合計ジャッジ時間 1,887 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;

#define ll         long long
#define PI         acos(-1.0)
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)

int main(){
    ll A, B;
    cout << 0 << " " << 0 << endl;
    cin >> A;
    cout << 0 << " " << A << endl;
    cin >> B;
    cout << B/2 << " " << A - B/2 << endl;
    return 0;
}
0