結果

問題 No.221 犯罪都市
ユーザー 37zigen
提出日時 2016-05-02 23:31:33
言語 Java
(openjdk 23)
結果
AC  
実行時間 174 ms / 5,000 ms
コード長 389 bytes
コンパイル時間 4,200 ms
コンパイル使用メモリ 74,528 KB
実行使用メモリ 41,700 KB
最終ジャッジ日時 2024-12-25 10:14:09
合計ジャッジ時間 7,155 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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