結果

問題 No.2109 Special Week
ユーザー 👑 kakel-sankakel-san
提出日時 2022-10-28 22:40:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 781 bytes
コンパイル時間 1,938 ms
コンパイル使用メモリ 64,112 KB
実行使用メモリ 24,400 KB
最終ジャッジ日時 2023-09-20 05:47:21
合計ジャッジ時間 7,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
20,100 KB
testcase_01 AC 78 ms
22,308 KB
testcase_02 AC 77 ms
22,372 KB
testcase_03 AC 77 ms
22,316 KB
testcase_04 AC 77 ms
24,348 KB
testcase_05 AC 77 ms
24,320 KB
testcase_06 AC 77 ms
24,248 KB
testcase_07 AC 77 ms
22,296 KB
testcase_08 AC 77 ms
22,260 KB
testcase_09 AC 78 ms
24,316 KB
testcase_10 AC 77 ms
22,304 KB
testcase_11 AC 76 ms
22,304 KB
testcase_12 AC 77 ms
22,324 KB
testcase_13 AC 76 ms
22,256 KB
testcase_14 AC 76 ms
24,308 KB
testcase_15 AC 76 ms
24,252 KB
testcase_16 AC 76 ms
24,260 KB
testcase_17 AC 77 ms
24,312 KB
testcase_18 AC 77 ms
22,204 KB
testcase_19 AC 78 ms
24,304 KB
testcase_20 AC 76 ms
22,272 KB
testcase_21 AC 77 ms
22,364 KB
testcase_22 AC 77 ms
24,252 KB
testcase_23 AC 76 ms
22,208 KB
testcase_24 AC 76 ms
20,224 KB
testcase_25 AC 76 ms
22,264 KB
testcase_26 AC 77 ms
22,156 KB
testcase_27 AC 77 ms
24,400 KB
testcase_28 AC 78 ms
22,248 KB
testcase_29 AC 77 ms
22,188 KB
testcase_30 AC 77 ms
24,332 KB
testcase_31 AC 78 ms
24,260 KB
testcase_32 AC 77 ms
22,308 KB
testcase_33 AC 77 ms
24,260 KB
testcase_34 AC 78 ms
24,272 KB
testcase_35 AC 76 ms
22,256 KB
testcase_36 AC 78 ms
22,308 KB
testcase_37 AC 77 ms
22,268 KB
testcase_38 AC 78 ms
22,292 KB
testcase_39 AC 77 ms
22,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static long NN => long.Parse(ReadLine());
    static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
    static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var c = NList;
        var date = new DateTime(2022, (int)c[0], (int)c[1]);
        var found = new bool[10];
        for (var i = 0; i < 7; ++i)
        {
            var d = date.ToString("MMdd");
            for (var ch = 0; ch < 10; ++ch)
            {
                if (d.Contains((char)(ch + '0'))) found[ch] = true;
            }
            date = date.AddDays(1);
        }
        WriteLine(found.Count(f => f) >= c[2] ? "Yes" : "No");
    }
}
0