結果

問題 No.221 犯罪都市
ユーザー tsunabittsunabit
提出日時 2020-03-16 18:34:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 3,646 ms
コンパイル使用メモリ 71,860 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-08-18 19:24:01
合計ジャッジ時間 6,818 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
39,172 KB
testcase_01 AC 123 ms
39,212 KB
testcase_02 AC 121 ms
39,304 KB
testcase_03 WA -
testcase_04 AC 124 ms
39,560 KB
testcase_05 AC 123 ms
39,204 KB
testcase_06 AC 122 ms
39,620 KB
testcase_07 AC 121 ms
39,260 KB
testcase_08 WA -
testcase_09 AC 122 ms
40,008 KB
testcase_10 WA -
testcase_11 AC 123 ms
39,304 KB
testcase_12 AC 124 ms
39,724 KB
testcase_13 AC 121 ms
39,212 KB
testcase_14 AC 124 ms
39,280 KB
testcase_15 AC 122 ms
39,652 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 = (100*n)*0.99;
		double p = (1000000-k)*0.01;
		System.out.println(p / (k+p)*100);
	}
}
0