結果

問題 No.188 HAPPY DAY
ユーザー soi09476291soi09476291
提出日時 2019-11-09 20:55:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 955 bytes
コンパイル時間 3,224 ms
コンパイル使用メモリ 98,924 KB
実行使用メモリ 20,400 KB
最終ジャッジ日時 2023-10-13 07:35:28
合計ジャッジ時間 3,081 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

namespace ConsoleApp11
{
    class Program
    {
        static void Main(string[] args)
        {
            int count = 0;

            for(int i = 1; i <= 12; i++)
            {
                for(int j = 1; j <= 30; j++)
                {
                    if(i == j)
                    {
                        count++;
                    }
                }
            }

            for(int i = 1; i <= 12; i++)
            {
                for(int j = 1; j <= 3; j++)
                {
                    for(int k = 1; k <= 9; k++)
                    {
                        if(j  == 3)
                        {
                            break;
                        }
                        else if(i == (j + k))
                        {
                            count++;
                        }
                    }
                }
            }
            Console.WriteLine(count);
        }
    }
}
0