結果
問題 | No.513 宝探し2 |
ユーザー |
![]() |
提出日時 | 2017-07-06 16:34:56 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 783 bytes |
コンパイル時間 | 803 ms |
コンパイル使用メモリ | 83,712 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 2.83 |
最終ジャッジ日時 | 2024-07-17 01:16:04 |
合計ジャッジ時間 | 1,889 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> #include <fstream> #include <cstdio> #include <cmath> #include <vector> #include <cstring> #include <string> #include <set> #include <map> #include <stack> #include <queue> #include <algorithm> #include <complex> using namespace std; #define REP(i,n) for(int i=0; i<n; ++i) #define FOR(i,a,b) for(int i=a; i<=b; ++i) #define FORR(i,a,b) for (int i=a; i>=b; --i) #define ALL(c) (c).begin(), (c).end() #define pi acos(-1.0) typedef long long ll; typedef vector<int> VI; typedef vector<ll> VL; typedef vector<VI> VVI; typedef pair<int,int> P; typedef pair<ll,ll> PL; int main() { cout << 0 << " " << 0 << endl; int d; cin >> d; if (d == 0) return 0; cout << d << " " << 0 << endl; int e; cin >> e; cout << d - e/2 << " " << e/2 << endl; return 0; }