結果

問題 No.514 宝探し3
ユーザー takeya_okino
提出日時 2019-08-31 02:13:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 183 ms / 2,000 ms
コード長 495 bytes
コンパイル時間 2,743 ms
コンパイル使用メモリ 77,064 KB
実行使用メモリ 72,024 KB
平均クエリ数 2.67
最終ジャッジ日時 2024-07-16 18:06:55
合計ジャッジ時間 5,378 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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();
    long R = sc.nextLong();
    if(R == 0) System.exit(0);
    System.out.println(R + " " + 0);
    System.out.flush();
    long a = sc.nextLong();
    if(a == 0) System.exit(0);
    System.out.println((R - a / 2) + " " + (a / 2));
    System.out.flush();
    long b = sc.nextLong();
    System.exit(0);
  }
}
0