結果

問題 No.221 犯罪都市
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-21 22:26:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 306 bytes
コンパイル時間 3,471 ms
コンパイル使用メモリ 71,544 KB
実行使用メモリ 58,436 KB
最終ジャッジ日時 2023-08-26 13:50:04
合計ジャッジ時間 6,711 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
56,428 KB
testcase_01 AC 135 ms
55,992 KB
testcase_02 AC 134 ms
56,316 KB
testcase_03 AC 136 ms
56,308 KB
testcase_04 AC 137 ms
56,116 KB
testcase_05 AC 138 ms
55,740 KB
testcase_06 AC 137 ms
56,272 KB
testcase_07 AC 137 ms
55,984 KB
testcase_08 AC 136 ms
55,860 KB
testcase_09 AC 137 ms
56,204 KB
testcase_10 AC 138 ms
56,340 KB
testcase_11 AC 137 ms
56,248 KB
testcase_12 AC 136 ms
55,676 KB
testcase_13 AC 136 ms
58,436 KB
testcase_14 AC 137 ms
55,728 KB
testcase_15 AC 137 ms
55,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

    Scanner sc = new Scanner(System.in);

    double n = sc.nextDouble();
    double w = (1000000 - n * 100) / 100;
    double r = n * 100 * 99 / 100;
    double a = w + r;
    System.out.println(w / a * 100);
  }
}
0