結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  yukiteru | 
| 提出日時 | 2017-10-08 10:33:04 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 646 bytes | 
| コンパイル時間 | 694 ms | 
| コンパイル使用メモリ | 77,740 KB | 
| 実行使用メモリ | 6,816 KB | 
| 最終ジャッジ日時 | 2024-12-31 05:59:47 | 
| 合計ジャッジ時間 | 1,065 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000001;
using namespace std;
int main(void) {
	int count = 0;
	FOR(x, 1, 12) {
		FOR(y, 1, 31) {
			if (x == y / 10 + y % 10) {
				count++;
			}
			if ((x == 4 || x == 6 || x == 9 || x == 11) && (y == 30)) {
				break;
			}
			if (x == 2 && y == 28) {
				break;
			}
		}
	}
	cout << count << endl;
	return 0;
}
            
            
            
        