結果
問題 |
No.410 出会い
|
ユーザー |
|
提出日時 | 2021-03-16 21:54:18 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 504 bytes |
コンパイル時間 | 3,782 ms |
コンパイル使用メモリ | 73,204 KB |
実行使用メモリ | 37,140 KB |
最終ジャッジ日時 | 2024-11-08 16:47:52 |
合計ジャッジ時間 | 5,755 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000410_Main2 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String[] p = br.readLine().split(" "); String[] q = br.readLine().split(" "); System.out.println((Math.abs(Integer.parseInt(p[0]) - Integer.parseInt(q[0])) + Math.abs(Integer.parseInt(p[1]) - Integer.parseInt(q[1]))) / 2.0); } }