結果

問題 No.841 8/32
ユーザー ichibanshiboriichibanshibori
提出日時 2019-06-30 15:45:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 725 bytes
コンパイル時間 2,456 ms
コンパイル使用メモリ 105,704 KB
実行使用メモリ 24,620 KB
最終ジャッジ日時 2023-09-20 09:10:20
合計ジャッジ時間 5,382 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
24,620 KB
testcase_01 AC 78 ms
22,600 KB
testcase_02 AC 77 ms
24,500 KB
testcase_03 AC 78 ms
24,580 KB
testcase_04 AC 78 ms
24,556 KB
testcase_05 AC 78 ms
22,604 KB
testcase_06 AC 78 ms
22,528 KB
testcase_07 AC 79 ms
24,556 KB
testcase_08 AC 79 ms
22,520 KB
testcase_09 AC 79 ms
24,504 KB
testcase_10 AC 78 ms
22,612 KB
testcase_11 AC 78 ms
22,516 KB
testcase_12 AC 78 ms
24,456 KB
testcase_13 AC 77 ms
24,496 KB
testcase_14 AC 79 ms
20,624 KB
testcase_15 AC 78 ms
22,520 KB
testcase_16 AC 78 ms
22,492 KB
testcase_17 AC 77 ms
22,532 KB
testcase_18 AC 77 ms
22,588 KB
testcase_19 AC 78 ms
24,564 KB
testcase_20 AC 76 ms
22,496 KB
testcase_21 AC 79 ms
22,588 KB
testcase_22 AC 78 ms
22,640 KB
testcase_23 AC 78 ms
22,476 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 contest_cs
{
    class Program
    {
        static void Main(string[] args)
        {
            var line = Console.ReadLine();
            var sArr = line.Split(' ')
                .Select(it => it.StartsWith("S"))
                .ToArray();

            string ans;

            if (sArr[0])
            {
                if (sArr[1])
                {
                    ans = "8/33";
                }
                else
                {
                    ans = "8/32";
                }
            }
            else
            {
                ans = "8/31";
            }


            Console.WriteLine(ans);
        }
    }
}
0