晚风做酒
晚风做酒
全部文章
题解
归档
标签
去牛客网
登录
/
注册
晚风做酒的博客
全部文章
/ 题解
(共2篇)
题解 | #称砝码#set<int>t(s)是将s里面的数据放到新t中?
#include"bits/stdc++.h" using namespace std; /* 题解: 将所有的砝码,包括重复的砝码,当成是字符串,然后将set从0开始,设置一个新的set容器, 将字符串里面的一次与这个新的set容器里面的数值相加,并添加到旧...
C++
字符串
2022-03-10
5
587
题解 | #扑克牌大小#
参考大佬的思路,空格比较法,顺便完善了下单张王之间的比较; #include"vector" #include"string" #include"algorithm" #include"map" using namespace std; int cmp(string s) { switch...
C++
字符串
2022-03-09
0
261