結果
問題 | No.513 宝探し2 |
ユーザー |
![]() |
提出日時 | 2017-05-05 22:33:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 691 ms |
コンパイル使用メモリ | 82,728 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-17 00:57:00 |
合計ジャッジ時間 | 1,984 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <cmath> #include <string> #include <vector> #include <iomanip> #include <iostream> #include <algorithm> #include <functional> #pragma warning(disable : 4996) using namespace std; int a, b; int main() { cout << "0 0" << endl; cin >> a; cout << "1000000000 0" << endl; cin >> b; b -= 1000000000; int x = (a - b) / 2, y = a - x; cout << x << ' ' << y << endl; return 0; }