結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  明智重蔵 | 
| 提出日時 | 2015-09-12 11:20:01 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 607 bytes | 
| コンパイル時間 | 3,981 ms | 
| コンパイル使用メモリ | 102,400 KB | 
| 実行使用メモリ | 17,408 KB | 
| 最終ジャッジ日時 | 2024-12-30 20:36:41 | 
| 合計ジャッジ時間 | 3,044 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Program
{
    static void Main()
    {
        int Answer = 0;
        DateTime CurrDay = new DateTime(2015, 1, 1);
        for (; CurrDay.Year == 2015; CurrDay = CurrDay.AddDays(1)) {
            if (IsHappyDay(CurrDay)) {
                Console.WriteLine("{0}はHappy Day", CurrDay.ToString(@"yyyy\/MM\/dd"));
                Answer++;
            }
        }
        Console.WriteLine(Answer);
    }
    static bool IsHappyDay(DateTime pTarget)
    {
        int wkMonth = pTarget.Month;
        int wkDay = pTarget.Day;
        return wkMonth == wkDay / 10 + wkDay % 10;
    }
}
            
            
            
        