結果

問題 No.188 HAPPY DAY
ユーザー torithtorith
提出日時 2017-03-18 21:49:59
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 433 bytes
コンパイル時間 1,105 ms
コンパイル使用メモリ 143,708 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-29 22:29:06
合計ジャッジ時間 1,466 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

/*
 * 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;
}

0