結果

問題 No.188 HAPPY DAY
ユーザー arasabakiarasabaki
提出日時 2016-03-06 22:47:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 710 bytes
コンパイル時間 4,274 ms
コンパイル使用メモリ 102,976 KB
実行使用メモリ 20,544 KB
最終ジャッジ日時 2023-08-29 04:54:45
合計ジャッジ時間 4,436 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
20,544 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
        }
    }
}
0