結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
FVRChan
|
| 提出日時 | 2017-10-05 10:23:20 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 1,860 ms |
| コンパイル使用メモリ | 82,392 KB |
| 実行使用メモリ | 41,816 KB |
| 最終ジャッジ日時 | 2026-03-17 03:09:45 |
| 合計ジャッジ時間 | 4,189 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main{
private static Scanner sc=new Scanner(System.in);
public static void main(String args[])throws Exception{
int x1=sc.nextInt(),y1=sc.nextInt(),x2=sc.nextInt(),y2=sc.nextInt();
int distance=Math.abs(x2-x1)+Math.abs(y2-y1);
System.out.println(distance*1.0/2);
}
}
FVRChan