結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-05-26 10:14:56 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 18 ms / 1,000 ms | 
| コード長 | 977 bytes | 
| コンパイル時間 | 887 ms | 
| コンパイル使用メモリ | 102,272 KB | 
| 実行使用メモリ | 17,280 KB | 
| 最終ジャッジ日時 | 2024-09-20 14:57:49 | 
| 合計ジャッジ時間 | 1,245 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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 yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int a=0 ;
            int b= 0;
            int count = 0;
            int num = 0;
            for (int i = 1; i < 12; i++)
            {
                if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 || i == 12)
                {
                    num = 31;
                }
                if (i == 4 || i == 6 || i == 9 || i == 11)
                {
                    num = 30;
                }
                else if (i == 2)
                {
                    num = 28;
                }
                for (int j = 1; j <=num ; j++)
                {
                    a = j / 10;
                    b = j - (a * 10);
                    if (i == a + b)
                    {
                        count++;
                    }
                }
            }
            Console.WriteLine(count);
        }
    }
}
            
            
            
        