結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-14 22:23:54 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,071 bytes |
| コンパイル時間 | 930 ms |
| コンパイル使用メモリ | 111,988 KB |
| 実行使用メモリ | 23,860 KB |
| 最終ジャッジ日時 | 2024-12-31 05:49:18 |
| 合計ジャッジ時間 | 1,383 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp17
{
class Program
{
static void Main(string[] args)
{
string happyday = "";
int dd = 0;
for (int m=1;m<=12;++m)
{
for (int d=1;d<=31;++d)
{
if (m == 2 && 29 <= d)
{
break;
}
if ((m == 4 || m == 6 || m == 9 || m == 11) && 31 == d)
{
break;
}
if ( 0 <= d && d <= 9) dd = d;
if (10 <= d && d <= 19) dd = d - 10 + 1;
if (20 <= d && d <= 29) dd = d - 20 + 2;
if (30 <= d && d <= 31) dd = d - 30 + 3;
if (m == dd) happyday = happyday + m + "月" + d + "日, ";
}
dd = 0;
}
Console.WriteLine(happyday);
Console.ReadLine();
}
}
}