結果

問題 No.188 HAPPY DAY
ユーザー torithtorith
提出日時 2017-03-18 21:42:57
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 1,149 ms
コンパイル使用メモリ 143,512 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-29 22:28:53
合計ジャッジ時間 1,561 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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=10 ; days <= 31 ; days++){
	  if(month == 2 && days > 28) break;
	  if(((month == 4)||(month == 6)||(month == 9)||(month == 11))&&(month ==31)) break;
	  if(month == days/10 + days%10) count++;
	}
  }
  cout << count <<endl;
}

0