結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
mrc1031
|
| 提出日時 | 2016-10-07 15:03:07 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 911 ms |
| コンパイル使用メモリ | 105,800 KB |
| 実行使用メモリ | 27,240 KB |
| 最終ジャッジ日時 | 2024-12-31 01:07:10 |
| 合計ジャッジ時間 | 1,434 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace SampleAppCSharp
{
class Program
{
static void Main(string[] args)
{
int happyCount = 0;
for (DateTime date = DateTime.Parse("2015/1/1"); date <= DateTime.Parse("2015/12/31"); )
{
if (date.Month == ((date.Day / 10) + (date.Day % 10)))
happyCount++;
date = date.AddDays(1);
}
Console.WriteLine(happyCount);
}
}
}
mrc1031