結果
| 問題 | No.773 コンテスト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-24 10:52:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 644 bytes |
| 記録 | |
| コンパイル時間 | 1,063 ms |
| コンパイル使用メモリ | 111,936 KB |
| 実行使用メモリ | 19,328 KB |
| 最終ジャッジ日時 | 2024-07-06 11:29:49 |
| 合計ジャッジ時間 | 2,590 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
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());
}
}