結果

問題 No.514 宝探し3
ユーザー nenuonnenuon
提出日時 2017-05-06 13:20:40
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 548 bytes
コンパイル時間 556 ms
コンパイル使用メモリ 72,048 KB
実行使用メモリ 24,384 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:57:14
合計ジャッジ時間 1,787 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,312 KB
testcase_01 AC 26 ms
23,532 KB
testcase_02 AC 24 ms
24,336 KB
testcase_03 AC 25 ms
23,532 KB
testcase_04 AC 25 ms
23,388 KB
testcase_05 AC 25 ms
23,436 KB
testcase_06 AC 25 ms
23,640 KB
testcase_07 AC 25 ms
24,096 KB
testcase_08 AC 25 ms
23,652 KB
testcase_09 AC 25 ms
23,592 KB
testcase_10 AC 25 ms
24,384 KB
testcase_11 AC 25 ms
23,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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