結果

問題 No.513 宝探し2
ユーザー YamaKasaYamaKasa
提出日時 2018-09-24 16:49:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 4,627 ms
コンパイル使用メモリ 73,536 KB
実行使用メモリ 72,984 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 01:56:18
合計ジャッジ時間 5,265 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
71,404 KB
testcase_01 AC 158 ms
72,472 KB
testcase_02 AC 156 ms
72,728 KB
testcase_03 AC 159 ms
72,508 KB
testcase_04 AC 161 ms
72,452 KB
testcase_05 AC 160 ms
72,828 KB
testcase_06 AC 155 ms
72,984 KB
testcase_07 AC 155 ms
72,312 KB
testcase_08 AC 159 ms
72,668 KB
testcase_09 AC 153 ms
72,872 KB
testcase_10 AC 154 ms
72,844 KB
testcase_11 AC 163 ms
72,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x0 = 0;
		int y0 = 0;
		System.out.println(x0 + " " + y0);
		int d0 = scan.nextInt();
		if(d0 == 0) {
			System.exit(0);
		}
		System.out.println(d0 + " " + y0);
		int d1 = scan.nextInt();
		int x1 = d1 / 2;
		int y1 = d0 - x1;
		System.out.println(y1 + " " + x1);

		scan.close();
		System.exit(0);
	}
}
0