結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-03-06 22:47:46 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 24 ms / 1,000 ms | 
| コード長 | 710 bytes | 
| コンパイル時間 | 2,314 ms | 
| コンパイル使用メモリ | 102,912 KB | 
| 実行使用メモリ | 17,536 KB | 
| 最終ジャッジ日時 | 2024-12-30 21:14:56 | 
| 合計ジャッジ時間 | 1,661 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
コンパイルメッセージ
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;
using System.Text;
using System.Threading.Tasks;
namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            var targetdate = new DateTime(2015, 1, 1);
            int count = 0;
            for (;;)
            {
                if (targetdate.Year == 2016)
                {
                    break;
                }
                if (targetdate.Month == targetdate.Day % 10 + targetdate.Day / 10)
                {
                    count++;
                }
                targetdate = targetdate.AddDays(1);
            }
            Console.WriteLine(count);
        }
    }
}
            
            
            
        