結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
square1001
|
| 提出日時 | 2017-05-05 22:33:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 384 bytes |
| コンパイル時間 | 895 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 25,476 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 12:55:27 |
| 合計ジャッジ時間 | 2,001 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
square1001