随笔分类 - 蓝桥杯
摘要:题目 三带一【算法赛】https://www.lanqiao.cn/problems/5127/learning/?contest_id=144 问题描述 小蓝和小桥玩斗地主,小蓝只剩四张牌了,他想知道是否是“三带一”牌型。 所谓“三带一”牌型,即四张手牌中,有三张牌一样,另外一张不与其他牌相同,换
阅读全文
摘要:c++代码 #include<iostream> #include<algorithm>//sort的头文件;这个文件头大多用的上,记住一下哦;ovo using namespace std; bool cmp(int x,int y); void swap (int* x, int* y); in
阅读全文