結果

問題 No.188 HAPPY DAY
ユーザー torithtorith
提出日時 2017-03-18 21:45:15
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 1,141 ms
コンパイル使用メモリ 143,660 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-29 22:29:04
合計ジャッジ時間 1,556 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 == 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