結果

問題 No.221 犯罪都市
ユーザー tsunabittsunabit
提出日時 2020-03-16 18:59:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 4,285 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 55,892 KB
最終ジャッジ日時 2023-08-18 19:24:41
合計ジャッジ時間 7,455 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
55,892 KB
testcase_01 AC 99 ms
39,708 KB
testcase_02 AC 98 ms
39,216 KB
testcase_03 AC 98 ms
39,348 KB
testcase_04 AC 103 ms
39,268 KB
testcase_05 AC 103 ms
39,124 KB
testcase_06 AC 100 ms
38,952 KB
testcase_07 AC 98 ms
39,172 KB
testcase_08 AC 96 ms
39,332 KB
testcase_09 AC 99 ms
39,372 KB
testcase_10 AC 110 ms
39,004 KB
testcase_11 AC 105 ms
39,724 KB
testcase_12 AC 99 ms
39,524 KB
testcase_13 AC 101 ms
39,212 KB
testcase_14 AC 107 ms
39,288 KB
testcase_15 AC 104 ms
39,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

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