結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-03-26 23:44:29 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 959 bytes | 
| コンパイル時間 | 195 ms | 
| コンパイル使用メモリ | 24,704 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-31 01:28:31 | 
| 合計ジャッジ時間 | 529 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
ソースコード
#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;
}
            
            
            
        