結果

問題 No.513 宝探し2
ユーザー takeya_okinotakeya_okino
提出日時 2019-08-05 22:13:44
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 438 bytes
コンパイル時間 5,256 ms
コンパイル使用メモリ 72,120 KB
実行使用メモリ 73,016 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 17:59:04
合計ジャッジ時間 7,268 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 190 ms
72,836 KB
testcase_01 AC 184 ms
70,860 KB
testcase_02 AC 193 ms
72,236 KB
testcase_03 AC 185 ms
72,596 KB
testcase_04 AC 190 ms
72,444 KB
testcase_05 AC 186 ms
73,012 KB
testcase_06 AC 182 ms
72,140 KB
testcase_07 AC 181 ms
71,956 KB
testcase_08 RE -
testcase_09 AC 181 ms
73,016 KB
testcase_10 AC 181 ms
70,292 KB
testcase_11 AC 182 ms
72,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.println(0 + " " + 0);
    System.out.flush();
    int ret1 = sc.nextInt();
    System.out.println(0 + " " + 100000);
    System.out.flush();
    int ret2 = sc.nextInt();
    int x = (ret1 + ret2 - 100000) / 2;
    int y = ret1 - x;
    System.out.println(x + " " + y);
    System.out.flush();
  }
}
0