結果
| 問題 | No.514 宝探し3 |
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2017-05-05 22:42:28 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| + 0µs | |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 76,132 KB |
| 実行使用メモリ | 6,016 KB |
| 平均クエリ数 | 2.92 |
| 最終ジャッジ日時 | 2026-08-14 03:09:59 |
| 合計ジャッジ時間 | 1,487 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
int X = 0, Y = 0;
int d;
cout << X << " " << Y << endl;
cin >> d;
X += min(d, (int)1e9);
d -= min(d, (int)1e9);
Y += d;
cout << X << " " << Y << endl;
cin >> d;
d /= 2;
X -= d;
Y += d;
cout << X << " " << Y << endl;
return 0;
}
kurenai3110