結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-19 10:01:50 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 943 bytes |
| 記録 | |
| コンパイル時間 | 716 ms |
| コンパイル使用メモリ | 27,264 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-02 12:00:32 |
| 合計ジャッジ時間 | 1,049 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#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++;
}
}
}
}
}
funakoshi