結果

問題 No.513 宝探し2
コンテスト
ユーザー takeya_okino
提出日時 2019-08-05 22:13:44
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
RE  
実行時間 -
コード長 438 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,490 ms
コンパイル使用メモリ 83,176 KB
実行使用メモリ 66,740 KB
平均クエリ数 2.92
最終ジャッジ日時 2026-03-31 07:40:10
合計ジャッジ時間 3,536 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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