結果

問題 No.2109 Special Week
ユーザー bluemeganebluemegane
提出日時 2022-10-28 22:32:03
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 738 bytes
コンパイル時間 2,376 ms
コンパイル使用メモリ 65,144 KB
実行使用メモリ 25,020 KB
最終ジャッジ日時 2023-09-20 05:37:48
合計ジャッジ時間 6,679 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
22,896 KB
testcase_01 AC 71 ms
22,912 KB
testcase_02 AC 71 ms
22,808 KB
testcase_03 AC 71 ms
24,904 KB
testcase_04 AC 70 ms
24,828 KB
testcase_05 AC 70 ms
20,824 KB
testcase_06 AC 71 ms
22,944 KB
testcase_07 AC 70 ms
22,948 KB
testcase_08 AC 71 ms
22,908 KB
testcase_09 AC 71 ms
24,848 KB
testcase_10 AC 71 ms
23,040 KB
testcase_11 AC 70 ms
22,940 KB
testcase_12 AC 71 ms
24,844 KB
testcase_13 AC 71 ms
22,964 KB
testcase_14 AC 71 ms
22,772 KB
testcase_15 AC 70 ms
24,816 KB
testcase_16 AC 71 ms
22,836 KB
testcase_17 AC 70 ms
22,800 KB
testcase_18 AC 70 ms
25,020 KB
testcase_19 AC 70 ms
24,940 KB
testcase_20 AC 70 ms
22,876 KB
testcase_21 AC 70 ms
24,920 KB
testcase_22 AC 70 ms
22,984 KB
testcase_23 AC 72 ms
22,776 KB
testcase_24 AC 72 ms
23,040 KB
testcase_25 AC 72 ms
24,936 KB
testcase_26 AC 72 ms
22,840 KB
testcase_27 AC 72 ms
23,000 KB
testcase_28 AC 72 ms
22,984 KB
testcase_29 AC 73 ms
22,952 KB
testcase_30 AC 73 ms
24,948 KB
testcase_31 AC 72 ms
24,916 KB
testcase_32 AC 70 ms
22,868 KB
testcase_33 AC 69 ms
23,060 KB
testcase_34 AC 70 ms
20,880 KB
testcase_35 AC 71 ms
24,936 KB
testcase_36 AC 71 ms
22,928 KB
testcase_37 AC 71 ms
22,804 KB
testcase_38 AC 71 ms
20,936 KB
testcase_39 AC 71 ms
22,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var m = int.Parse(line[0]);
        var d = int.Parse(line[1]);
        var k = int.Parse(line[2]);
        getAns(m, d, k);
    }

    static void getAns(int m, int d, int k)
    {
        var hs = new HashSet<char>();
        var ymd = new DateTime(2022, m, d, 0, 0, 0);
        for (int i = 0; i < 7; i++)
        {
            var ymd2 = ymd.AddDays(i);
            var a = string.Format("{0:00}{1:00}", ymd2.Month, ymd2.Day);
            foreach (var x in a) hs.Add(x);
        }
        Console.WriteLine(hs.Count >= k ? "Yes" : "No");
    }
}
0