結果

問題 No.188 HAPPY DAY
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-13 02:04:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 392 bytes
コンパイル時間 834 ms
コンパイル使用メモリ 105,192 KB
実行使用メモリ 23,472 KB
最終ジャッジ日時 2024-04-15 08:14:57
合計ジャッジ時間 1,240 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

class No188{
    static void Main(){
        var c=0;
        for(int i=1;i<13;++i){
            for(int j=1;j<32;++j){
                if(j==31){
                    if(i==2||i==4||i==6||i==9||i==11){
                        continue;
                    }
                }
                if(i==(j%10+j/10)) c++;
            }
        }
        Console.WriteLine(c);
    }
}
0