結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-08-27 15:46:25 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 2,548 ms |
コンパイル使用メモリ | 74,260 KB |
実行使用メモリ | 41,692 KB |
最終ジャッジ日時 | 2024-06-28 11:11:50 |
合計ジャッジ時間 | 6,347 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int Px = sc.nextInt(); int Py = sc.nextInt(); int Qx = sc.nextInt(); int Qy = sc.nextInt(); double PQx = (Px + Qx) / 2.0; double PQy = (Py + Qy) / 2.0; double t = Math.abs(Px - PQx) + Math.abs(Py - PQy); System.out.printf("%.20f\n",t); } }