随笔分类 -  蓝桥杯

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

点击右上角即可分享
微信分享提示