結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2023-05-19 06:18:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 795 bytes |
コンパイル時間 | 1,254 ms |
コンパイル使用メモリ | 125,264 KB |
最終ジャッジ日時 | 2025-02-13 01:15:31 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 1 |
ソースコード
#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 % (int)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; }