結果
| 問題 | No.841 8/32 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-10-29 18:02:04 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 28 ms / 2,000 ms | 
| コード長 | 2,074 bytes | 
| コンパイル時間 | 1,741 ms | 
| コンパイル使用メモリ | 105,472 KB | 
| 実行使用メモリ | 19,712 KB | 
| 最終ジャッジ日時 | 2024-09-14 21:34:04 | 
| 合計ジャッジ時間 | 2,452 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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);
        }
    }
}
            
            
            
        