結果

問題 No.841 8/32
ユーザー ichibanshiboriichibanshibori
提出日時 2019-06-30 15:39:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 786 bytes
コンパイル時間 4,005 ms
コンパイル使用メモリ 105,564 KB
実行使用メモリ 24,632 KB
最終ジャッジ日時 2023-09-20 09:01:15
合計ジャッジ時間 6,634 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
22,540 KB
testcase_01 AC 78 ms
22,536 KB
testcase_02 AC 79 ms
24,588 KB
testcase_03 AC 77 ms
22,484 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 78 ms
24,356 KB
testcase_07 AC 78 ms
24,416 KB
testcase_08 AC 80 ms
22,440 KB
testcase_09 AC 80 ms
22,456 KB
testcase_10 AC 78 ms
22,380 KB
testcase_11 AC 79 ms
22,392 KB
testcase_12 AC 77 ms
22,600 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 78 ms
22,616 KB
testcase_16 AC 78 ms
24,484 KB
testcase_17 WA -
testcase_18 AC 81 ms
22,584 KB
testcase_19 AC 78 ms
24,532 KB
testcase_20 AC 78 ms
22,552 KB
testcase_21 AC 77 ms
24,448 KB
testcase_22 AC 77 ms
22,524 KB
testcase_23 AC 79 ms
22,460 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 numS = line.Split(' ')
                .Where(it => it.StartsWith("S"))
                .Count();

            string ans;
            switch (numS) {
                case 0:
                    ans = "8/31";
                    break;

                case 1:
                    ans = "8/32";
                    break;

                case 2:
                    ans = "8/33";
                    break;

                default:
                    throw new InvalidOperationException();
            }

            Console.WriteLine(ans);
        }
    }
}
0