結果
| 問題 |
No.410 出会い
|
| ユーザー |
kenji_shioya
|
| 提出日時 | 2016-10-23 00:07:12 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 133 ms / 2,000 ms |
| コード長 | 339 bytes |
| コンパイル時間 | 3,277 ms |
| コンパイル使用メモリ | 73,984 KB |
| 実行使用メモリ | 41,488 KB |
| 最終ジャッジ日時 | 2024-06-28 11:18:30 |
| 合計ジャッジ時間 | 7,305 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
import java.util.*;
public class Exercise157 {
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();
int sum = Math.abs(pX - qX) + Math.abs(pY - qY);
System.out.println((double)sum / 2);
}
}
kenji_shioya