結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2018-09-24 16:49:48 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 200 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 2,626 ms |
コンパイル使用メモリ | 76,568 KB |
実行使用メモリ | 71,812 KB |
平均クエリ数 | 2.83 |
最終ジャッジ日時 | 2024-07-17 01:56:00 |
合計ジャッジ時間 | 6,117 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(d0 + " " + y0); int d1 = scan.nextInt(); int x1 = d1 / 2; int y1 = d0 - x1; System.out.println(y1 + " " + x1); scan.close(); System.exit(0); } }