結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
YamaKasa
|
| 提出日時 | 2018-09-24 16:50:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 2,000 ms |
| コード長 | 440 bytes |
| コンパイル時間 | 2,571 ms |
| コンパイル使用メモリ | 76,144 KB |
| 実行使用メモリ | 72,040 KB |
| 平均クエリ数 | 2.83 |
| 最終ジャッジ日時 | 2024-07-17 01:55:53 |
| 合計ジャッジ時間 | 5,857 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
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);
}
}
YamaKasa