結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 173 ms
72,788 KB
testcase_01 AC 171 ms
72,616 KB
testcase_02 AC 167 ms
72,804 KB
testcase_03 AC 168 ms
73,004 KB
testcase_04 AC 167 ms
72,604 KB
testcase_05 AC 169 ms
72,536 KB
testcase_06 AC 168 ms
72,996 KB
testcase_07 AC 169 ms
72,852 KB
testcase_08 AC 172 ms
72,568 KB
testcase_09 AC 168 ms
72,384 KB
testcase_10 AC 168 ms
70,592 KB
testcase_11 AC 167 ms
73,100 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(x0 + " " + d0);
		int d1 = scan.nextInt();
		int x1 = d1 / 2;
		int y1 = d0 - x1;
		System.out.println(x1 + " " + y1);

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