首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
crisy1991
电子科技大学
2017届
C++工程师
牛客中一小步,人生中的一大步!
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(65)
扑克牌大小
0
//虽说写的很麻烦,但却实自己的想法写出来了--后面在改进 //牌有两种情况 //第一种:两手牌个数不相等,能比较(必须含有王炸或者炸弹)或者不能比较 //第二种:牌数相同,由于给定输入,除了顺子牌面不相同外,其他输入必须是相同的牌(1张,两张,三张,四张) //而且已经排好序了,所以对于牌数相同的...
发表于 2016-09-13 11:38:46
求最大连续bit数
0
#include <iostream> using namespace std; int count(int n){ int res=0; int temp=0; while(n){ if(n&1) temp++;...
发表于 2016-09-07 20:50:33
统计每个月兔子的总数
166
#include <iostream> using namespace std; int main(){ int m; while(cin>>m){ int a=1,b=0,c=0;//a:一个月兔子数,b:两个月兔子数,c:三个月兔子个数 ...
发表于 2016-09-07 16:16:20
参数解析
0
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(){ string str;...
发表于 2016-09-06 10:26:54
输入n个整数,输出其中最小的k个
0
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n,k; while(cin>>n>...
发表于 2016-09-06 09:33:35
字符串排序
1
//这种方法应该是复杂度最低的吧,时间复杂度n #include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; boo...
发表于 2016-09-05 09:43:14
计算日期到天数转换
0
#include <iostream> using namespace std; int main(){ int year,month,day; while(cin>>year>>month>>day){ int re...
发表于 2016-09-03 11:00:35
等差数列
0
#include <iostream> using namespace std; int main(){ int n; while(cin>>n){ int res=0; int cur=2; while(n-...
发表于 2016-09-03 10:38:57
顺时针打印矩阵
1
贴一个不是伪代码的,现在笔试都要求完整程序,刚刚就碰到个,愣是没写出来 #include <iostream> #include <vector> using namespace std; int main(){ int n; while(cin>>n){...
发表于 2016-09-02 10:07:51
统计大写字母个数
1
#include <iostream> #include <string> using namespace std; int main(){ string input; while(cin>>input){ int res=0; ...
发表于 2016-09-01 16:44:37
首页
上一页
1
2
3
4
5
6
7
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题