結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー funakoshi
提出日時 2019-08-19 10:01:50
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 943 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 200 ms
コンパイル使用メモリ 35,396 KB
最終ジャッジ日時 2026-02-22 04:22:21
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main(void)
{
    int month=1,hdaycnt=0;
    if(month==1&&month==3&&month==5&&month==7&&month==8&&month==10&&month==12)
    {
        for(int i=0;i<=3;i++)
        {
            for(int j=0;j<=9;j++)
            {
                if(month==i+j)
                {
                    hdaycnt++;
                }
            }
        }
    }
    else if (month==4&&month==6&&month==9&&month==11)
    {
        for(int i=0;i<=3;i++)
        {
            for(int j=0;j<=9;j++)
            {
                if(month==i+j)
                {
                    hdaycnt++;
                }
            }
        }
    }
    else
    {
        for(int i=0;i<=2;i++)
        {
            for(int j=0;j<=9;j++)
            {
                if(month==i+j)
                {
                    hdaycnt++;
                }
            }
        }
    }
    
    
}
0