![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
互联网笔试
皮得一1
这个作者很懒,什么都没留下…
展开
-
360笔试 2019.4.3
1、组队吃鸡 最近一款吃鸡类型的游戏火爆全球。在组队模式下,你可以邀请自己的好友组件自己的小队,并选择是否填充(是否同意和非好友玩),然后加入游戏。现在有A个单人队伍,B个双人队伍,C个三人队伍,D个四人队伍,并且全都同意填充,请问最多能组成多少个四人队伍。 输入: 第一行一个正整数T,表示数据组数。(1≤T≤100) 接下来T行,每行四个非负整数,A,B,C,D。(0≤A,B,C,D≤1...原创 2019-04-03 21:53:44 · 2093 阅读 · 0 评论 -
腾讯笔试 2019.4.5
1、换硬币问题,有n种硬币,数量不限,问凑够1-m的所有钱的金额数,最少需要多少个硬币? 输入:m和n。 输出:所需硬币的总数。 测试用例: 输入:4 20 1 2 5 20 输出:6 #include <iostream> #include <algorithm> using namespace std; int main() { i...原创 2019-04-05 22:22:14 · 905 阅读 · 0 评论 -
华为笔试题
#include <iostream> #include <algorithm> #include <string> #include <map> using namespace std; int main() { map<char,int> s; string str; cin>>str; ...原创 2019-04-24 20:27:47 · 342 阅读 · 0 评论