結果

問題 No.514 宝探し3
ユーザー jp_stejp_ste
提出日時 2017-05-16 21:43:24
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 460 bytes
コンパイル時間 2,656 ms
コンパイル使用メモリ 74,024 KB
実行使用メモリ 73,220 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 14:06:25
合計ジャッジ時間 5,591 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 185 ms
71,292 KB
testcase_01 AC 179 ms
72,592 KB
testcase_02 AC 183 ms
72,892 KB
testcase_03 AC 187 ms
72,612 KB
testcase_04 AC 180 ms
72,772 KB
testcase_05 AC 177 ms
72,524 KB
testcase_06 AC 181 ms
72,760 KB
testcase_07 AC 183 ms
73,220 KB
testcase_08 RE -
testcase_09 AC 193 ms
72,660 KB
testcase_10 AC 187 ms
72,768 KB
testcase_11 AC 175 ms
71,928 KB
権限があれば一括ダウンロードができます

ソースコード

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