Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【2022寒假精进训练-8】7-10 集合相似度 | HBUACM #25

Open
HANXU2018 opened this issue Feb 21, 2022 · 0 comments
Open

【2022寒假精进训练-8】7-10 集合相似度 | HBUACM #25

HANXU2018 opened this issue Feb 21, 2022 · 0 comments

Comments

@HANXU2018
Copy link
Member

https://hbuacm.github.io/2022/02/15/%E3%80%902022%E5%AF%92%E5%81%87%E7%B2%BE%E8%BF%9B%E8%AE%AD%E7%BB%83-8%E3%80%917-10%20%E9%9B%86%E5%90%88%E7%9B%B8%E4%BC%BC%E5%BA%A6/

给定两个整数集合,它们的相似度定义为:N$_c$/N$_t$×100%。其中N$_c$是两个集合都有的不相等整数的个数,N*t是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。 输入格式:输入第一行给出一个正整数N(≤50),是集合的个数。随后N行,每行对应一个集合。每个集合首先给出一个正整数M(≤10^4^),是集合中元素的个数;然后跟M个[0,10^9^]区间内的整

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant