結果
問題 | No.221 犯罪都市 |
ユーザー | バカらっく |
提出日時 | 2018-02-17 23:41:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 1,149 bytes |
コンパイル時間 | 2,113 ms |
コンパイル使用メモリ | 103,888 KB |
実行使用メモリ | 14,868 KB |
最終ジャッジ日時 | 2023-09-06 17:58:09 |
合計ジャッジ時間 | 4,215 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 51 ms
14,636 KB |
testcase_01 | AC | 52 ms
14,648 KB |
testcase_02 | AC | 52 ms
14,868 KB |
testcase_03 | AC | 50 ms
14,724 KB |
testcase_04 | AC | 48 ms
14,556 KB |
testcase_05 | AC | 57 ms
14,644 KB |
testcase_06 | AC | 56 ms
14,656 KB |
testcase_07 | AC | 54 ms
14,760 KB |
testcase_08 | AC | 55 ms
14,724 KB |
testcase_09 | AC | 56 ms
14,836 KB |
testcase_10 | AC | 55 ms
14,740 KB |
testcase_11 | AC | 53 ms
14,776 KB |
testcase_12 | AC | 49 ms
14,644 KB |
testcase_13 | AC | 49 ms
14,648 KB |
testcase_14 | AC | 51 ms
14,736 KB |
testcase_15 | AC | 51 ms
14,732 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int totalPopulation = 1000000; int rate = int.Parse(Reader.ReadLine()); decimal gonin = (totalPopulation - (rate * 100)) / 100; decimal taiho = rate * 99; decimal ans = (gonin / (gonin + taiho)) * 100; Console.WriteLine(ans); } public class Reader { private static StringReader sr; public static bool IsDebug = false; public static string ReadLine() { if (IsDebug) { if (sr == null) { sr = new StringReader(InputText.Trim()); } return sr.ReadLine(); } else { return Console.ReadLine(); } } private static string InputText = @" 2500 "; } public static void Main(string[] args) { #if DEBUG Reader.IsDebug = true; #endif Program prg = new Program(); prg.Proc(); } }