結果
問題 | No.221 犯罪都市 |
ユーザー |
|
提出日時 | 2016-04-22 15:46:17 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 3,959 ms |
コンパイル使用メモリ | 100,992 KB |
実行使用メモリ | 18,688 KB |
最終ジャッジ日時 | 2024-12-25 10:03:44 |
合計ジャッジ時間 | 3,828 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }