結果

問題 No.513 宝探し2
ユーザー takeya_okino
提出日時 2019-08-05 22:13:44
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 438 bytes
コンパイル時間 1,996 ms
コンパイル使用メモリ 76,092 KB
実行使用メモリ 70,452 KB
平均クエリ数 2.92
最終ジャッジ日時 2024-07-16 17:52:31
合計ジャッジ時間 4,982 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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