結果
| 問題 |
No.410 出会い
|
| ユーザー |
FVRChan
|
| 提出日時 | 2017-10-05 10:23:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 314 bytes |
| コンパイル時間 | 2,025 ms |
| コンパイル使用メモリ | 74,344 KB |
| 実行使用メモリ | 41,868 KB |
| 最終ジャッジ日時 | 2024-06-28 11:25:50 |
| 合計ジャッジ時間 | 5,942 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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