結果

問題 No.188 HAPPY DAY
ユーザー mafuyu-akimafuyu-aki
提出日時 2017-03-26 23:44:29
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 959 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 26,932 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-08-29 22:29:26
合計ジャッジ時間 707 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>




int main(int argc, char *argv[]) 
{
	int lMax[13][2] = { 
		{ 3, 1 },          //1月
	    { 2, 8 },          //2月
	    { 3, 1 },          //3月
	    { 3, 0 },          //4月
	    { 3, 1 },          //5月
	    { 3, 0 },          //6月
	    { 3, 1 },          //7月
	    { 3, 1 },          //8月
	    { 3, 0 },          //9月
	    { 3, 1 },          //10月
	    { 3, 0 },          //11月
	    { 3, 1 },          //12月
	};

	int lCount = 0;
    
	for( int lMonth = 1; lMonth <= 12; lMonth++ )
	{
		for( int lTenth = 0; lTenth <=  lMax[lMonth][0]; lTenth++ )
		{
			for( int lFirst = 1; lFirst < 10; lFirst++ )
			{
				if( lMonth == lTenth + lFirst )
				{
					//printf( "%d月%d%d日\n", lMonth, lTenth, lFirst );
					lCount++;
				}

				if( lTenth == lMax[lMonth][0] && lFirst == lMax[lMonth][1]  )
					break;

			}
		}




	}







	printf( "%d\n", lCount );



	return 0;

}

0