結果

問題 No.221 犯罪都市
ユーザー tentententen
提出日時 2020-10-07 11:13:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 1,820 ms
コンパイル使用メモリ 71,892 KB
実行使用メモリ 56,140 KB
最終ジャッジ日時 2023-09-27 09:11:20
合計ジャッジ時間 5,107 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
56,076 KB
testcase_01 AC 112 ms
55,960 KB
testcase_02 AC 112 ms
56,020 KB
testcase_03 AC 112 ms
55,972 KB
testcase_04 AC 114 ms
55,912 KB
testcase_05 AC 110 ms
56,124 KB
testcase_06 AC 113 ms
55,508 KB
testcase_07 AC 111 ms
56,140 KB
testcase_08 AC 112 ms
55,908 KB
testcase_09 AC 110 ms
55,728 KB
testcase_10 AC 112 ms
55,952 KB
testcase_11 AC 112 ms
56,028 KB
testcase_12 AC 110 ms
55,856 KB
testcase_13 AC 108 ms
55,920 KB
testcase_14 AC 112 ms
55,624 KB
testcase_15 AC 110 ms
56,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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