結果

問題 No.338 アンケート機能
ユーザー HimatsubushinHimatsubushin
提出日時 2016-03-11 15:27:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 868 bytes
コンパイル時間 1,957 ms
コンパイル使用メモリ 108,800 KB
実行使用メモリ 24,240 KB
最終ジャッジ日時 2023-10-25 05:02:40
合計ジャッジ時間 3,083 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
24,124 KB
testcase_01 AC 25 ms
24,124 KB
testcase_02 AC 25 ms
24,124 KB
testcase_03 AC 25 ms
24,124 KB
testcase_04 WA -
testcase_05 AC 25 ms
24,124 KB
testcase_06 WA -
testcase_07 AC 25 ms
24,124 KB
testcase_08 AC 25 ms
24,124 KB
testcase_09 AC 25 ms
24,124 KB
testcase_10 AC 25 ms
24,124 KB
testcase_11 AC 25 ms
24,124 KB
testcase_12 AC 25 ms
24,124 KB
testcase_13 AC 25 ms
24,124 KB
testcase_14 AC 25 ms
24,124 KB
testcase_15 AC 25 ms
24,124 KB
testcase_16 AC 25 ms
24,124 KB
testcase_17 AC 25 ms
24,124 KB
testcase_18 AC 25 ms
24,124 KB
testcase_19 AC 25 ms
24,124 KB
testcase_20 AC 25 ms
24,124 KB
testcase_21 AC 25 ms
24,124 KB
testcase_22 AC 25 ms
24,124 KB
testcase_23 AC 24 ms
24,124 KB
testcase_24 AC 23 ms
24,124 KB
testcase_25 AC 25 ms
24,124 KB
testcase_26 AC 25 ms
24,124 KB
testcase_27 AC 25 ms
24,124 KB
testcase_28 AC 26 ms
24,124 KB
testcase_29 AC 25 ms
24,124 KB
testcase_30 AC 25 ms
24,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No338
{
    class Program
    {
        static void Main(string[] args)
        {
            int min_a = 100, min_b = 100;

            string[] data = Console.ReadLine().Split(' ');
            int A = int.Parse(data[0]);
            int B = int.Parse(data[1]);

            for (double a = 1.0; a <= 200.0; a++)
            {
                for (double b = 1.0; b <= 200.0; b++)
                {
                    if (A == (int)(a / (a + b) * 100 + 0.5) && B == (int)(b / (a + b) * 100 + 0.5))
                    {
                        if (min_a + min_b > (int)a + (int)b)
                        {
                            min_a = (int)a;
                            min_b = (int)b;
                        }
                    }
                }
            }

            Console.WriteLine(min_a + min_b);
        }
    }
}
0