結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-11 17:19:01 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 57 ms / 2,000 ms |
| + 968µs | |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 1,508 ms |
| コンパイル使用メモリ | 84,356 KB |
| 実行使用メモリ | 45,848 KB |
| 最終ジャッジ日時 | 2026-08-23 11:37:32 |
| 合計ジャッジ時間 | 4,209 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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