結果

問題 No.236 鴛鴦茶
ユーザー nokonokonokonoko
提出日時 2015-07-09 23:45:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 1,889 bytes
コンパイル時間 2,503 ms
コンパイル使用メモリ 104,952 KB
実行使用メモリ 25,928 KB
最終ジャッジ日時 2023-09-10 21:50:03
合計ジャッジ時間 5,461 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
23,768 KB
testcase_01 AC 72 ms
25,928 KB
testcase_02 AC 72 ms
23,756 KB
testcase_03 AC 72 ms
23,900 KB
testcase_04 AC 74 ms
25,764 KB
testcase_05 AC 74 ms
24,008 KB
testcase_06 AC 71 ms
23,784 KB
testcase_07 AC 72 ms
23,728 KB
testcase_08 AC 74 ms
25,804 KB
testcase_09 AC 72 ms
25,744 KB
testcase_10 AC 71 ms
23,700 KB
testcase_11 AC 71 ms
23,732 KB
testcase_12 AC 72 ms
23,780 KB
testcase_13 AC 73 ms
23,816 KB
testcase_14 AC 70 ms
23,864 KB
testcase_15 AC 72 ms
25,892 KB
testcase_16 AC 71 ms
21,728 KB
testcase_17 AC 72 ms
23,904 KB
testcase_18 AC 70 ms
23,900 KB
testcase_19 AC 71 ms
23,888 KB
testcase_20 AC 72 ms
25,844 KB
testcase_21 AC 70 ms
21,852 KB
testcase_22 AC 72 ms
23,948 KB
testcase_23 AC 71 ms
25,768 KB
testcase_24 AC 71 ms
23,896 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;

namespace YukiCoderNo236
{
    class Program
    {
        static void Main()
        {
            double[] buffer = LIB.IO.R<double>(' ');
            LIB.IO.W((buffer[0] + buffer[1]) * Math.Min((buffer[2] / buffer[0]), (buffer[3] / buffer[1])));
            LIB.IO.WFLUSH();
        }
    }
}
namespace LIB
{
    public class IO
    {
        private const int WMAX = 1000;
        private static string WSTRING = "";
        public static T R<T>()
        {
            return (T)(Convert.ChangeType(R(), typeof(T)));
        }
        public static T[] R<T>(char splitter = ' ')
        {
            return R().Split(splitter).Select(v => UTILITY.PARSE<T>(v)).ToArray();
        }
        public static T[] R<T>(int length)
        {

            T[] ret = new T[length];
            for (int i = 0; i < length; i++)
            {
                ret[i] = R<T>();
            }
            return ret;
        }
        public static T[][] R<T>(int length, char splitter = ' ')
        {
            T[][] ret = new T[length][];
            for (int i = 0; i < length; i++)
            {
                ret[i] = R<T>(splitter);
            }
            return ret;
        }
        private static string R()
        {
            return Console.ReadLine();
        }
        public static void W(object value, bool addLineFeed = true)
        {
            WSTRING += UTILITY.PARSE<string>(value);
            if (addLineFeed == true) { WSTRING += "\n"; }
            if (WSTRING.Count() >= WMAX) { WFLUSH(); }
        }
        public static void WFLUSH()
        {
            Console.Write(WSTRING);
            WSTRING = "";
        }
    }
    public class UTILITY
    {
        public static T PARSE<T>(object value)
        {
            return (T)(Convert.ChangeType(value, typeof(T)));
        }
    }
}
0