結果

問題 No.306 さいたま2008
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-11 21:02:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 3,423 ms
コンパイル使用メモリ 76,564 KB
実行使用メモリ 41,712 KB
最終ジャッジ日時 2024-04-17 18:53:15
合計ジャッジ時間 5,925 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
41,276 KB
testcase_01 AC 104 ms
41,416 KB
testcase_02 AC 103 ms
41,212 KB
testcase_03 AC 104 ms
41,352 KB
testcase_04 AC 104 ms
41,144 KB
testcase_05 AC 95 ms
41,712 KB
testcase_06 AC 92 ms
41,308 KB
testcase_07 AC 104 ms
41,428 KB
testcase_08 AC 105 ms
41,508 KB
testcase_09 AC 102 ms
41,384 KB
testcase_10 AC 104 ms
41,312 KB
testcase_11 AC 95 ms
41,552 KB
testcase_12 AC 103 ms
41,276 KB
testcase_13 AC 102 ms
41,452 KB
testcase_14 AC 104 ms
41,252 KB
testcase_15 AC 106 ms
41,348 KB
testcase_16 AC 94 ms
41,288 KB
testcase_17 AC 93 ms
41,200 KB
testcase_18 AC 94 ms
41,568 KB
testcase_19 AC 95 ms
41,364 KB
testcase_20 AC 92 ms
41,288 KB
testcase_21 AC 104 ms
41,676 KB
testcase_22 AC 110 ms
41,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise78{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    double ax = sc.nextInt();
    double ay = sc.nextInt();
    double bx = sc.nextInt();
    double by = sc.nextInt();

    double height = ax / (ax + bx) * (by - ay);

    System.out.println(ay + height);
  }
}
0