結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2017-05-03 16:46:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 722 bytes |
コンパイル時間 | 2,016 ms |
コンパイル使用メモリ | 76,664 KB |
実行使用メモリ | 37,096 KB |
最終ジャッジ日時 | 2024-06-28 11:22:40 |
合計ジャッジ時間 | 4,024 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.stream.Stream; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String[] inputs = reader.readLine().split(" "); int px = Integer.parseInt(inputs[0]); int py = Integer.parseInt(inputs[1]); inputs = reader.readLine().split(" "); int qx = Integer.parseInt(inputs[0]); int qy = Integer.parseInt(inputs[1]); System.out.println((Math.abs(px - qx) + Math.abs(py - qy)) / 2.0); } }