結果
| 問題 | 
                            No.513 宝探し2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             paru
                         | 
                    
| 提出日時 | 2017-05-05 23:00:06 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 447 bytes | 
| コンパイル時間 | 435 ms | 
| コンパイル使用メモリ | 55,540 KB | 
| 実行使用メモリ | 40,272 KB | 
| 最終ジャッジ日時 | 2024-07-17 01:00:43 | 
| 合計ジャッジ時間 | 6,900 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 11 | 
ソースコード
#include <iostream>
using namespace std;
int main () {
    cout << 0 << ' ' << 0 << endl;
    int d;
    cin >> d;
    if (d <= 100000) {
        cout << 0 << ' ' << d;
        int D;
        cin >> D;
        cout << D / 2 << ' ' << d - D / 2 << endl;
    }
    else {
        cout << d - 100000 << ' ' << 100000 << endl;
        int D;
        cin >> D;
        cout << d - 100000 + D / 2 << ' ' << 100000 - D / 2 << endl;
    }
    return 0;
}
            
            
            
        
            
paru