結果

問題 No.221 犯罪都市
ユーザー うに太郎うに太郎
提出日時 2015-06-11 13:11:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 498 bytes
コンパイル時間 1,709 ms
コンパイル使用メモリ 101,592 KB
実行使用メモリ 24,764 KB
最終ジャッジ日時 2023-08-26 07:22:06
合計ジャッジ時間 3,387 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,740 KB
testcase_01 AC 55 ms
22,680 KB
testcase_02 AC 55 ms
24,764 KB
testcase_03 AC 52 ms
18,616 KB
testcase_04 AC 53 ms
20,596 KB
testcase_05 AC 55 ms
24,612 KB
testcase_06 AC 53 ms
22,680 KB
testcase_07 AC 53 ms
22,668 KB
testcase_08 AC 54 ms
20,696 KB
testcase_09 AC 53 ms
22,676 KB
testcase_10 AC 55 ms
22,604 KB
testcase_11 AC 55 ms
22,640 KB
testcase_12 AC 55 ms
22,572 KB
testcase_13 AC 57 ms
22,560 KB
testcase_14 AC 55 ms
22,776 KB
testcase_15 AC 55 ms
24,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int person = int.Parse(Console.ReadLine());

            int mafia = person * 100;
            int citizen = 1000000 - mafia;

            double ans = (citizen * 0.01 / (mafia * 0.99 + citizen * 0.01)) * 100;
            Console.WriteLine(ans);
        }
    }
}
0