結果

問題 No.773 コンテスト
ユーザー CroweaCrowea
提出日時 2019-01-24 10:52:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 644 bytes
コンパイル時間 1,112 ms
コンパイル使用メモリ 65,460 KB
実行使用メモリ 23,800 KB
最終ジャッジ日時 2023-09-20 16:25:02
合計ジャッジ時間 3,552 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,728 KB
testcase_01 AC 62 ms
23,660 KB
testcase_02 AC 59 ms
21,824 KB
testcase_03 AC 59 ms
21,780 KB
testcase_04 AC 59 ms
21,772 KB
testcase_05 AC 60 ms
23,656 KB
testcase_06 AC 61 ms
21,660 KB
testcase_07 AC 59 ms
19,644 KB
testcase_08 AC 60 ms
21,604 KB
testcase_09 AC 60 ms
23,732 KB
testcase_10 AC 59 ms
23,772 KB
testcase_11 AC 60 ms
23,800 KB
testcase_12 AC 60 ms
21,664 KB
testcase_13 AC 59 ms
23,800 KB
testcase_14 AC 60 ms
21,732 KB
testcase_15 AC 60 ms
19,712 KB
testcase_16 AC 60 ms
19,672 KB
testcase_17 AC 59 ms
21,544 KB
testcase_18 AC 61 ms
21,828 KB
testcase_19 AC 61 ms
23,740 KB
testcase_20 AC 61 ms
19,756 KB
testcase_21 AC 61 ms
21,612 KB
testcase_22 AC 61 ms
23,596 KB
testcase_23 AC 61 ms
23,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
    class Program
    {
        const int START_DAY = 23;
        const int DAY_COUNT = 3; // 23 ~ 25

        static IEnumerable<int> enumerator = Enumerable.Range(START_DAY, DAY_COUNT);
        static void Main(string[] args)
        {

            var days = Console.ReadLine().Split(' ');
            var start = int.Parse(days[0]);
            var end = int.Parse(days[1]);
            var enumerator2 = Enumerable.Range(start, (end - start) + 1);
            enumerator = enumerator.Except(enumerator2);
            Console.WriteLine(enumerator.Count());
        }
    }
0