結果

問題 No.514 宝探し3
ユーザー jp_stejp_ste
提出日時 2017-05-16 21:43:24
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 460 bytes
コンパイル時間 2,101 ms
コンパイル使用メモリ 76,348 KB
実行使用メモリ 71,880 KB
平均クエリ数 2.92
最終ジャッジ日時 2024-07-16 13:45:28
合計ジャッジ時間 5,234 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        System.out.println(0 + " " + 0);
        int d1 = scan.nextInt();
        System.out.println(0 + " " + d1);
        int d2 = scan.nextInt();
        if(d2 == 0) {
            System.out.println(0 + " " + d1);   
        } else {
            System.out.println(d2/2 + " " + (d1-d2/2));
        }
    }
}
0