結果
問題 | No.188 HAPPY DAY |
ユーザー | oemon |
提出日時 | 2016-11-21 23:20:45 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 2,173 ms |
コンパイル使用メモリ | 105,984 KB |
実行使用メモリ | 23,704 KB |
最終ジャッジ日時 | 2023-08-29 22:23:06 |
合計ジャッジ時間 | 2,746 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; namespace No188 { class Program { static void Main(string[] args) { var result = Enumerable.Range(0, int.MaxValue) .Select(i => new DateTime(2015, 1, 1).AddDays(i)) .TakeWhile(date => date.Year == 2015) .Count(date => date.Month == date.Day * 0.1 + date.Day - date.Day * 0.1); Console.Write(result); } } }