結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
incuiio
|
| 提出日時 | 2023-05-19 06:22:43 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 790 bytes |
| 記録 | |
| コンパイル時間 | 799 ms |
| コンパイル使用メモリ | 149,908 KB |
| 実行使用メモリ | 29,636 KB |
| 平均クエリ数 | 2.50 |
| 最終ジャッジ日時 | 2026-06-30 16:05:57 |
| 合計ジャッジ時間 | 2,171 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cmath>
#include <unordered_map>
#include <map>
#include <queue>
#include <string>
#include <set>
#include <list>
#include <climits>
#include <bitset>
#include <numeric>
#include <cassert>
#include <regex>
using std::cout;
using std::cin;
using std::string;
using std::vector;
int main()
{
cout << "0 0" << std::endl;
int d1;
cin >> d1;
if (d1 == 0)
{
return 0;
}
int x = std::min((int)1e5, d1);
int y = 0;
if (d1 > 1e5)
{
y = d1 - 1e5;
}
cout << x << ' ' << y << std::endl;
int d2;
cin >> d2;
if (d2 == 0)
{
return 0;
}
cout << x - d2/2 << ' ' << y + d2/2 << std::endl;
return 0;
}
incuiio