結果

問題 No.1230 Hall_and_me
ユーザー キョウチクキョウチク
提出日時 2022-05-16 10:20:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 425 bytes
コンパイル時間 6,265 ms
コンパイル使用メモリ 72,344 KB
実行使用メモリ 57,676 KB
最終ジャッジ日時 2023-10-12 02:22:21
合計ジャッジ時間 14,547 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,876 KB
testcase_01 AC 128 ms
56,084 KB
testcase_02 AC 128 ms
55,976 KB
testcase_03 AC 125 ms
55,836 KB
testcase_04 AC 125 ms
56,004 KB
testcase_05 AC 127 ms
55,780 KB
testcase_06 AC 126 ms
55,720 KB
testcase_07 AC 127 ms
55,644 KB
testcase_08 AC 127 ms
56,004 KB
testcase_09 AC 127 ms
56,176 KB
testcase_10 AC 127 ms
56,112 KB
testcase_11 AC 128 ms
55,788 KB
testcase_12 AC 129 ms
55,896 KB
testcase_13 AC 130 ms
56,260 KB
testcase_14 AC 128 ms
57,676 KB
testcase_15 AC 135 ms
55,604 KB
testcase_16 AC 133 ms
56,256 KB
testcase_17 AC 133 ms
55,900 KB
testcase_18 AC 130 ms
53,720 KB
testcase_19 AC 133 ms
55,620 KB
testcase_20 AC 130 ms
55,620 KB
testcase_21 AC 128 ms
56,048 KB
testcase_22 AC 126 ms
55,780 KB
testcase_23 AC 116 ms
55,856 KB
testcase_24 AC 112 ms
56,104 KB
testcase_25 AC 115 ms
55,792 KB
testcase_26 AC 112 ms
56,012 KB
testcase_27 AC 128 ms
55,796 KB
testcase_28 AC 129 ms
56,076 KB
testcase_29 AC 129 ms
55,956 KB
testcase_30 AC 129 ms
55,868 KB
testcase_31 AC 128 ms
55,776 KB
testcase_32 AC 128 ms
55,928 KB
testcase_33 AC 130 ms
55,928 KB
testcase_34 AC 129 ms
55,776 KB
testcase_35 AC 128 ms
56,120 KB
testcase_36 AC 127 ms
55,792 KB
testcase_37 AC 126 ms
56,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test10 {
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String[] line;
    line=sc.nextLine().split(" ");
    double[] data=new double[3];
    double sum=0;
    for(int i=0;i<3;i++){
      data[i]=Double.parseDouble(line[i]);
      sum+=data[i];
    }
    Arrays.sort(data);
    double p=1-(data[0]/sum);
    System.out.println(p);
    sc.close();
  }
}
0