首页 > TAG信息列表 > Dating

PAT-1061 Dating

1061 Dating part 1, 1.1 题目理解 INPUT: 两对字符串 前两个字符串共有且位置相同的第一个大写字母 ABCDEFG 表示 星期几前两个字符串共有且位置相同且在第一个大写字母后边的数字或者大写字母 表示 时后两个字符串共有且位置相同的字母所在位置代表 分 OUTPUT: 约会时间

1061 Dating (20 分)

1. 题目 Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually referring to the coded time Th

《机器学习实战》-k近邻算法

目录K-近邻算法k-近邻算法概述解析和导入数据使用 Python 导入数据实施 kNN 分类算法测试分类器使用 k-近邻算法改进约会网站的配对效果收集数据准备数据:使用 Python 解析文本文件分析数据:使用 Matplotlib 画二维散点图准备数据:归一化数值测试算法:验证分类器使用算法:构建完整可用系

1061 Dating (20 分)

Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually referring to the coded time Thursday

6612. Cow Dating

题目描述 由于目前可供奶牛们使用的约会网站并没有给 Farmer John 留下深刻印象,他决定推出一个基于新匹配算法的奶牛交友网站,该算法可基于公牛和母牛间的共同兴趣对公牛和母牛进行匹配。 Bessie 在寻找情人节 Barn Dance 的合作伙伴时,决定试用这个网站。在注册账户之后,FJ 的算法为

1061 Dating (20分)

1. 题目 2. 思路 难点在于理解题目的意思 3. 注意点 DAY的确定是必须大写字母,而且大写字母在A~G之间而不是全部大写字母 hh是数字或者大写字母,如果是大写字母必须在A~N之间,而且是在找完DAY之后往后继续寻找 MM是字母 4. 代码 #include<cstdio> #include<algorithm> #include<stri

PAT甲级——1061 Dating (20分)

Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually referring to the coded time Thursday

PAT甲级 1061 Dating 模拟+字符串

简单的模拟题,读懂题就好了。 代码如下: #include<iostream> #include<string> #include<math.h> #include<stdio.h> using namespace std; string s1,s2,s3,s4; int main(){ cin>>s1>>s2>>s3>>s4; int min_len=min(s1.length(),s2

PAT甲级1061 Dating (20 分)

1061 Dating (20 分) Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually referring to the

KNN 约会网站配对

# coding=utf-8# kNN-约会网站约友分类from numpy import *import matplotlib.pyplot as pltimport matplotlib.font_manager as fontimport operator # 【1】获取数据def init_data(): # 打开训练集文件 f = open(r"datingTestSet2.txt", "r") rows = f.readlines()