結果

問題 No.410 出会い
ユーザー jin128jin128
提出日時 2016-08-27 17:23:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 2,165 ms
コンパイル使用メモリ 74,120 KB
実行使用メモリ 56,016 KB
最終ジャッジ日時 2024-04-26 06:37:23
合計ジャッジ時間 5,978 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,700 KB
testcase_01 WA -
testcase_02 AC 138 ms
41,708 KB
testcase_03 WA -
testcase_04 AC 126 ms
41,208 KB
testcase_05 WA -
testcase_06 AC 127 ms
40,864 KB
testcase_07 AC 138 ms
41,692 KB
testcase_08 WA -
testcase_09 AC 124 ms
40,764 KB
testcase_10 AC 140 ms
41,656 KB
testcase_11 AC 141 ms
41,796 KB
testcase_12 AC 139 ms
41,804 KB
testcase_13 AC 147 ms
41,588 KB
testcase_14 WA -
testcase_15 AC 132 ms
41,200 KB
testcase_16 AC 137 ms
41,784 KB
testcase_17 AC 136 ms
41,616 KB
testcase_18 AC 139 ms
41,500 KB
testcase_19 WA -
testcase_20 AC 125 ms
40,880 KB
testcase_21 AC 138 ms
41,980 KB
testcase_22 AC 134 ms
40,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class S20_encounter{
  public static void main(String[] args){
    double ax, ay, bx, by;
    double time = 0;
    Scanner scn = new Scanner(System.in);

    ax = scn.nextDouble();
    ay = scn.nextDouble();
    bx = scn.nextDouble();
    by = scn.nextDouble();

    time += Math.abs(((ax - bx)+(ay - by))/2);

    System.out.println(time);
  }
}
0