結果
| 問題 |
No.410 出会い
|
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-11-10 02:23:38 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 370 bytes |
| コンパイル時間 | 2,213 ms |
| コンパイル使用メモリ | 74,596 KB |
| 実行使用メモリ | 41,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:18:48 |
| 合計ジャッジ時間 | 5,724 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
import java.util.*;
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();
int d = Math.abs(Px-Qx) + Math.abs(Py-Qy);
double r = d/2.0;
System.out.println(r);
}
}
kohaku_kohaku