結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-11 17:19:01 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 2,330 ms |
| コンパイル使用メモリ | 81,720 KB |
| 実行使用メモリ | 47,476 KB |
| 最終ジャッジ日時 | 2026-04-03 10:24:21 |
| 合計ジャッジ時間 | 4,887 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
double ans = (Math.abs(px - qx) + Math.abs(py - qy)) / 2.0;
System.out.println(ans);
}
}
tenten