#include #include #include #include #include #include #include #include #include #include namespace Util { std::vector Split(const std::string& str, const char delim) { std::istringstream iss(str); std::vector ret; std::string tmp; while(std::getline(iss, tmp, delim)) { ret.push_back(tmp); } return ret; } int Stoi(const std::string& buf) { return std::atoi(buf.c_str()); } double Stof(const std::string& buf) { return std::atof(buf.c_str()); } std::vector ConvertInt(const std::vector& vecBuf) { std::vector ret(vecBuf.size()); for(int cur = 0; cur < static_cast(ret.size()); ++cur) { ret[cur] = Stoi(vecBuf[cur]); } return ret; } std::vector ConvertDouble(const std::vector& vecBuf) { std::vector ret(vecBuf.size()); for(int cur = 0; cur < static_cast(ret.size()); ++cur) { ret[cur] = Stof(vecBuf[cur]); } return ret; } }// namespace Util const int Month = 12; const std::array LastDay = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main() { // 入出力の速度向上 std::cin.tie(0); std::ios::sync_with_stdio(false); std::string buf; std::vector vecBuf; int target = 0; for(int count = 0; count < Month; ++count) { int month = count + 1; for(int oneScale = 0; oneScale <= month; ++oneScale) { int tenScale = month - oneScale; if(tenScale * 10 + oneScale <= LastDay[count] && tenScale < 10 && oneScale < 10) { // printf("%2d/%d%d\n", month, tenScale, oneScale); ++target; } } } printf("%d\n", target); return 0; }