結果

問題 No.221 犯罪都市
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-04-22 15:46:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 3,986 ms
コンパイル使用メモリ 99,976 KB
実行使用メモリ 24,748 KB
最終ジャッジ日時 2023-08-26 13:22:19
合計ジャッジ時間 4,901 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
22,712 KB
testcase_01 AC 61 ms
22,596 KB
testcase_02 AC 61 ms
24,748 KB
testcase_03 AC 58 ms
20,616 KB
testcase_04 AC 60 ms
22,752 KB
testcase_05 AC 61 ms
22,756 KB
testcase_06 AC 61 ms
22,676 KB
testcase_07 AC 61 ms
24,640 KB
testcase_08 AC 61 ms
24,600 KB
testcase_09 AC 60 ms
22,676 KB
testcase_10 AC 61 ms
24,716 KB
testcase_11 AC 60 ms
22,588 KB
testcase_12 AC 61 ms
22,660 KB
testcase_13 AC 60 ms
22,688 KB
testcase_14 AC 62 ms
20,480 KB
testcase_15 AC 61 ms
24,504 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        const int TOTAL = 1000000;
        int mafia = int.Parse(Console.ReadLine()) * 100;
        int civilian = TOTAL - mafia;
        Console.WriteLine((civilian / (mafia * 99.0 + civilian)) * 100);
    }
}
0