結果
問題 | No.513 宝探し2 |
ユーザー |
![]() |
提出日時 | 2017-05-05 22:40:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 60,268 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-17 00:57:54 |
合計ジャッジ時間 | 1,842 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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, 100000); d -= min(d, 100000); Y += d; cout << X << " " << Y << endl; cin >> d; d /= 2; X -= d; Y += d; cout << X << " " << Y << endl; return 0; }