結果

問題 No.221 犯罪都市
ユーザー 37zigen37zigen
提出日時 2016-05-02 23:31:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 389 bytes
コンパイル時間 2,832 ms
コンパイル使用メモリ 74,700 KB
実行使用メモリ 42,104 KB
最終ジャッジ日時 2024-06-07 08:42:24
合計ジャッジ時間 5,562 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
42,104 KB
testcase_01 AC 118 ms
40,908 KB
testcase_02 AC 125 ms
41,608 KB
testcase_03 AC 130 ms
41,592 KB
testcase_04 AC 130 ms
41,396 KB
testcase_05 AC 133 ms
41,508 KB
testcase_06 AC 138 ms
41,408 KB
testcase_07 AC 136 ms
42,104 KB
testcase_08 AC 124 ms
41,368 KB
testcase_09 AC 113 ms
40,820 KB
testcase_10 AC 116 ms
41,024 KB
testcase_11 AC 138 ms
41,508 KB
testcase_12 AC 127 ms
40,920 KB
testcase_13 AC 114 ms
41,024 KB
testcase_14 AC 115 ms
41,040 KB
testcase_15 AC 124 ms
41,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;
import java.util.Scanner;
public class Main{
	public static void main(String[] args)throws Exception{
		new Main().solve();
	}
	void solve(){
		Scanner sc=new Scanner(System.in);
		double n=sc.nextDouble();
		n=100*n;
		double total=1000000;
		double ans=0;
		ans+=0.01*(total-n)/total;
		ans=ans/(0.99*n/total+0.01*(total-n)/total);
		System.out.println(ans*100);
	}
}
0