結果

問題 No.221 犯罪都市
ユーザー htensaihtensai
提出日時 2019-11-24 11:39:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 113 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 2,438 ms
コンパイル使用メモリ 73,768 KB
実行使用メモリ 54,296 KB
最終ジャッジ日時 2024-04-20 08:54:06
合計ジャッジ時間 4,968 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
53,184 KB
testcase_01 AC 111 ms
54,164 KB
testcase_02 AC 99 ms
53,272 KB
testcase_03 AC 109 ms
54,272 KB
testcase_04 AC 113 ms
54,196 KB
testcase_05 AC 100 ms
52,992 KB
testcase_06 AC 104 ms
53,624 KB
testcase_07 AC 109 ms
54,112 KB
testcase_08 AC 96 ms
52,852 KB
testcase_09 AC 100 ms
52,740 KB
testcase_10 AC 103 ms
53,008 KB
testcase_11 AC 101 ms
53,044 KB
testcase_12 AC 110 ms
54,296 KB
testcase_13 AC 112 ms
54,012 KB
testcase_14 AC 98 ms
53,068 KB
testcase_15 AC 102 ms
52,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

0