首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
单词倒排
0
#include<iostream> #include<cstring> using namespace std; void reverse(char* s,int start,int end) { char t; for(;start<end;star...
发表于 2016-04-09 23:33:06
等差数列
0
#include<iostream> using namespace std; int Sum(int num) { int an=0,sn=0; int a1=2,d=3; if(num <= 0) { return -1; } else if(num == 1...
发表于 2016-04-09 23:29:46
找出字符串中第一个只出现一次的字符
0
#include<iostream> #include<cstring> using namespace std; char One_Time_Of_String(char* str) { char* p=str; if(NULL == str) { re...
发表于 2016-04-09 23:19:48
百钱买百鸡问题
0
#include<iostream> using namespace std; void Chick( void ) { /*定义公鸡,母鸡,小鸡 ,并初始化*/ int cock=0,hen=0,chick=0; for(cock =0;cock<=20...
发表于 2016-04-09 22:31:20
挑7
11
#include<iostream> using namespace std; int NumOfSeven(int num) { int n = 0; int sum = 0; if(num < 7) { return sum; } else { for(...
发表于 2016-04-09 22:14:45
字符个数统计
0
#include<iostream> #include<cstring> using namespace std; int CharNumber(char* str) { int num=0; if (NULL == str) { return num; ...
发表于 2016-04-09 21:42:35
输出单向链表中倒数第k个结点
3
#include<iostream> #include<malloc.h> using namespace std; /*结构体定义*/ typedef struct listNode{ int m_nKey; listNode* m_pNext; }ListNode; ...
发表于 2016-04-09 13:17:11
统计大写字母个数
0
#include<iostream> #include<cstring> using namespace std; void count(char* str) { char* p=str; if(NULL==str ||strlen(str)<0) { ...
发表于 2016-04-09 09:52:55
查找输入整数二进制中1的个数
0
#include<iostream> using namespace std; intnumber(intnum) { intcount=0; while(num) { ++count; ...
发表于 2016-04-09 09:42:38
走方格的方案数
0
#include<iostream> #include<cstring> using namespace std; int n,m,sum; void dfs(int x,int y) { if(x==n&&y==m) { su...
发表于 2016-04-09 09:30:59
首页
上一页
14
15
16
17
18
19
20
21
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题