結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-02 06:29:18 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 948 ms |
| コンパイル使用メモリ | 183,008 KB |
| 実行使用メモリ | 28,732 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-03-04 11:20:24 |
| 合計ジャッジ時間 | 2,838 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int d1, d2;
const int lim = 100000;
cout << 0 << ' ' << 0 << endl;
cin >> d1;
cout << 0 << ' ' << lim << endl;
cin >> d2;
int x = (d1 - d2 + lim) / 2;
int y = (d1 + d2 - lim) / 2;
cout << x << ' ' << y << endl;
return 0;
}