結果
問題 | No.514 宝探し3 |
ユーザー |
![]() |
提出日時 | 2017-05-05 22:42:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 487 ms |
コンパイル使用メモリ | 60,532 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-16 12:59:13 |
合計ジャッジ時間 | 1,741 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}