結果

問題 No.841 8/32
ユーザー naimonon77naimonon77
提出日時 2019-10-29 18:18:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 2,095 bytes
コンパイル時間 795 ms
コンパイル使用メモリ 61,572 KB
実行使用メモリ 24,312 KB
最終ジャッジ日時 2023-10-12 23:27:59
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,300 KB
testcase_01 AC 56 ms
24,312 KB
testcase_02 AC 56 ms
22,208 KB
testcase_03 AC 55 ms
22,204 KB
testcase_04 AC 55 ms
22,304 KB
testcase_05 AC 56 ms
22,184 KB
testcase_06 AC 55 ms
22,216 KB
testcase_07 AC 56 ms
20,348 KB
testcase_08 AC 56 ms
22,204 KB
testcase_09 AC 56 ms
22,132 KB
testcase_10 AC 56 ms
24,248 KB
testcase_11 AC 55 ms
22,184 KB
testcase_12 AC 55 ms
22,404 KB
testcase_13 AC 55 ms
22,156 KB
testcase_14 AC 55 ms
22,132 KB
testcase_15 AC 55 ms
22,216 KB
testcase_16 AC 56 ms
20,116 KB
testcase_17 AC 56 ms
22,328 KB
testcase_18 AC 56 ms
22,192 KB
testcase_19 AC 56 ms
24,268 KB
testcase_20 AC 55 ms
22,280 KB
testcase_21 AC 56 ms
22,204 KB
testcase_22 AC 55 ms
22,240 KB
testcase_23 AC 56 ms
22,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder@csharp

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.CompilerServices;
//using System.Web.UI;
using Debug = System.Diagnostics.Debug;
// using System.Drawing.Primitives;
//using System.Drawing;
using System.Windows;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            new Solver().Solve();
        }
    }

    class Solver
    {
        public const double inf = double.PositiveInfinity;
        readonly TextWriter error = Console.Error;

        private void Rep(int n_, Action<int> action)
        {
            for (int i = 0; i < n_; i++)
            {
                action(i);
            }
        }

        public string ReadLine()
        {
            return Console.ReadLine();
        }

        public string ReadNext()
        {
            var s = "";
            while (true)
            {
                var c = Console.Read();
                if (c == ' ' || c == '\n') break;
                s += (char)c;
            }
            return s;
        }

        public long ReadLong()
        {
            return Stol(ReadNext());
        }

        public long Stol(string s)
        {
            return long.Parse(s);
        }

        long n;

        public void Solve()
        {
            //var a = ReadNext();
            //var b = ReadNext();
            var splits = ReadLine().Split(' ');
            var a = splits[0];
            var b = splits[1];
            error.WriteLine("@" + a + "@");
            error.Write("@" + b);
            error.WriteLine("@");

            var set = new HashSet<string>();
            set.Add("Sat");
            set.Add("Sun");
            var res = "8/3";
            if (set.Contains(a))
            {
                if (set.Contains(b))
                {
                    res += "3";
                }
                else res += "2";
            }
            else res += "1";
            Console.WriteLine(res);
        }
    }
}
0