Submission #967108


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static string InputPattern = "InputX";

    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();

        if (InputPattern == "Input1") {
            WillReturn.Add("2 3 5");
            //7.5000000000000000
        }
        else if (InputPattern == "Input2") {
            WillReturn.Add("90 120 100");
            //133.3333333333333333
        }
        else {
            string wkStr;
            while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        }
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();
        decimal[] wkArr = InputList[0].Split(' ').Select(X => decimal.Parse(X)).ToArray();

        decimal A = wkArr[0];
        decimal B = wkArr[1];
        decimal C = wkArr[2];

        Console.WriteLine(C / A * B);
    }
}

Submission Info

Submission Time
Task A - SDカード
User aketijyuuzou
Language C# (Mono 4.6.2.0)
Score 100
Code Size 982 Byte
Status
Exec Time 26 ms
Memory 3160 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_example_01.txt, 00_example_02.txt
All 100 / 100 00_example_01.txt, 00_example_02.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 10_rand_05.txt, 10_rand_06.txt, 20_hand_01.txt, 20_hand_02.txt
Case Name Status Exec Time Memory
00_example_01.txt 26 ms 3160 KB
00_example_02.txt 23 ms 2904 KB
10_rand_01.txt 23 ms 2776 KB
10_rand_02.txt 22 ms 2776 KB
10_rand_03.txt 22 ms 2904 KB
10_rand_04.txt 22 ms 2904 KB
10_rand_05.txt 23 ms 2776 KB
10_rand_06.txt 23 ms 2776 KB
20_hand_01.txt 23 ms 2904 KB
20_hand_02.txt 23 ms 2904 KB