結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  torith | 
| 提出日時 | 2017-03-18 21:49:59 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 433 bytes | 
| コンパイル時間 | 1,239 ms | 
| コンパイル使用メモリ | 159,228 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-31 01:27:37 | 
| 合計ジャッジ時間 | 1,625 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
/*
 * 188.cpp
 */
//include files
#include<bits/stdc++.h>
using namespace std;
//DEFINE CONSTANT
//DEFINE PROTOTYPE
int main(){
  int count=0;
  for(int month=1 ; month <=12 ;month++){
	for(int days=1 ; days <= 31 ; days++){
	  if(month == 2 && days == 29) break;
	  if(((month == 4)||(month == 6)||(month == 9)||(month == 11))&&(days ==31)) break;
	  if(month == (days/10 + days%10)) count++;
	}
  }
  cout << count <<endl;
}
            
            
            
        