結果
| 問題 |
No.410 出会い
|
| ユーザー |
fal_rnd
|
| 提出日時 | 2017-03-31 15:30:23 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 2,176 ms |
| コンパイル使用メモリ | 74,756 KB |
| 実行使用メモリ | 41,568 KB |
| 最終ジャッジ日時 | 2024-06-28 11:22:01 |
| 合計ジャッジ時間 | 5,937 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main{
static Scanner s=new Scanner(System.in);
public static void main(String __[]){
input();
solve();
}
private static void input(){
}
private static void solve(){
int px=s.nextInt(),py=s.nextInt(),qx=s.nextInt(),qy=s.nextInt();
System.out.println((Math.abs(px-qx)+Math.abs(py-qy))/2.0);
}
}
fal_rnd