結果

問題 No.221 犯罪都市
ユーザー GrenacheGrenache
提出日時 2015-06-08 11:41:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 365 bytes
コンパイル時間 6,110 ms
コンパイル使用メモリ 71,296 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2023-08-26 07:19:23
合計ジャッジ時間 6,321 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,700 KB
testcase_01 AC 128 ms
55,924 KB
testcase_02 AC 129 ms
56,052 KB
testcase_03 AC 130 ms
55,752 KB
testcase_04 AC 129 ms
55,820 KB
testcase_05 AC 129 ms
55,940 KB
testcase_06 AC 128 ms
56,112 KB
testcase_07 AC 128 ms
55,720 KB
testcase_08 AC 129 ms
56,132 KB
testcase_09 AC 129 ms
56,232 KB
testcase_10 AC 130 ms
55,856 KB
testcase_11 AC 129 ms
55,788 KB
testcase_12 AC 133 ms
55,560 KB
testcase_13 AC 130 ms
55,796 KB
testcase_14 AC 130 ms
55,828 KB
testcase_15 AC 130 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder221 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        double g = 0.01 * (10000 - n) + 0.99 * n;
        double ret = 0.01 * (10000 - n) / g;

        System.out.printf("%.3f\n", ret * 100);
        
        sc.close();
    }
}
0