結果
問題 |
No.513 宝探し2
|
ユーザー |
|
提出日時 | 2022-02-02 06:30:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 1,461 ms |
コンパイル使用メモリ | 165,972 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-17 03:06:56 |
合計ジャッジ時間 | 2,691 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int d1, d2; const int lim = 100000; cout << 0 << ' ' << 0 << endl; cin >> d1; cout << lim << ' ' << 0 << endl; cin >> d2; int x = (d1 - d2 + lim) / 2; int y = (d1 + d2 - lim) / 2; cout << x << ' ' << y << endl; return 0; }