結果

問題 No.221 犯罪都市
ユーザー minus9dminus9d
提出日時 2015-06-05 23:15:04
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 320 bytes
コンパイル時間 3,215 ms
コンパイル使用メモリ 72,008 KB
実行使用メモリ 56,420 KB
最終ジャッジ日時 2023-08-26 07:01:15
合計ジャッジ時間 4,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
55,976 KB
testcase_01 AC 109 ms
55,572 KB
testcase_02 AC 110 ms
55,356 KB
testcase_03 AC 113 ms
55,812 KB
testcase_04 AC 109 ms
55,896 KB
testcase_05 AC 107 ms
55,940 KB
testcase_06 AC 110 ms
55,680 KB
testcase_07 AC 110 ms
56,420 KB
testcase_08 AC 111 ms
56,080 KB
testcase_09 AC 109 ms
56,028 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        int N = sc.nextInt();
        double correct = N * 99 / 100;
        double wrong = (10000 - N) / 100;
        System.out.println(wrong / (wrong + correct) * 100);
    }
}
0