結果

問題 No.221 犯罪都市
ユーザー 37zigen37zigen
提出日時 2016-05-02 23:31:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 389 bytes
コンパイル時間 3,618 ms
コンパイル使用メモリ 71,360 KB
実行使用メモリ 56,384 KB
最終ジャッジ日時 2023-08-26 13:27:57
合計ジャッジ時間 5,512 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
55,952 KB
testcase_01 AC 138 ms
55,912 KB
testcase_02 AC 137 ms
55,948 KB
testcase_03 AC 135 ms
56,004 KB
testcase_04 AC 137 ms
56,224 KB
testcase_05 AC 139 ms
56,128 KB
testcase_06 AC 137 ms
56,352 KB
testcase_07 AC 138 ms
56,188 KB
testcase_08 AC 138 ms
55,708 KB
testcase_09 AC 138 ms
56,384 KB
testcase_10 AC 138 ms
56,108 KB
testcase_11 AC 138 ms
55,952 KB
testcase_12 AC 138 ms
56,268 KB
testcase_13 AC 139 ms
55,932 KB
testcase_14 AC 139 ms
56,216 KB
testcase_15 AC 138 ms
56,168 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