跳到正文

个人记录

80......

fresh_wind约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年4月26日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
string s[150] ;
int main()
{
    //freopen("poker.in" , "r" ,stdin);
    //freopen("poker.out" , "w",stdout) ;
	ll n,ans=52 ;
	cin>>n ;
	ans-=n ;
	for(int i=1;i<=n;i++)
	{
	    cin>>s[i] ;
        for(int j=1;j<i;j++)
            if(s[j]==s[i])
                ans++ ;
	}
	cout<<ans ;
	return 0;
}
原文