結果

問題 No.188 HAPPY DAY
ユーザー masa_ahemasa_ahe
提出日時 2019-05-13 13:41:12
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 60,964 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-21 20:43:11
合計ジャッジ時間 1,016 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
 
int main(){
	int ans=0;
    for(int i=1;i<=12;i++){
        for(int j=1;j<=31;j++){
			if(i==2||4||6||9||11){
				if(j==30)break;
			}
            if(i==j/10+j%10){
                ans++;
            }
        }
    }
	cout<<ans<<endl;
	return 0;
}
0