题目链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805070149828608 题意:求两个集合的相同的不同元素的个数与所有不同元素个数的比值. 思路:直接用STL库里的set就可以解决. AC代码: #include<bits/stdc++.h> using namespace std; ]; int n,m,k,a,b,tmp; int main(){ scanf("%d",&…
此文章同步发布在我的CSDN上:https://blog.csdn.net/weixin_44385565/article/details/90041078 1112 Stucked Keyboard (20 分) On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys wil…