結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-01 20:34:38 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| コード長 | 615 bytes |
| コンパイル時間 | 3,917 ms |
| コンパイル使用メモリ | 104,544 KB |
| 実行使用メモリ | 25,312 KB |
| 最終ジャッジ日時 | 2024-12-31 05:47:30 |
| 合計ジャッジ時間 | 1,474 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
public class Hello{
public static void Main(){
// Here your code !
DateTime date = DateTime.Parse("2015/1/1");
int Month;
int wkDay;
int answer = 0;
for(int i = 0; i < 365; i++)
{
Month = date.Month;
wkDay = int.Parse(date.ToString("dd").Substring(0,1)) + int.Parse(date.ToString("dd").Substring(1,1));
if(Month == wkDay)
{
answer = answer + 1;
}
date = date.AddDays(1);
}
Console.WriteLine(answer);
}
}