首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
统计字符
1
#include<iostream> #include<cstring> using namespace std; void CountNumber(char* str) { char* p=str; if(NULL == str|| strlen(str)<=0...
发表于 2016-04-09 09:19:30
求小球落地5次后所经历的路程和第5次反弹的高度
1
#include<iostream> using namespace std; void DownLength(float num) { float sum = num; float high = 0.0; for( int i = 1; i &...
发表于 2016-04-09 09:00:31
句子逆序
0
#include<iostream> #include<cstring> #include<vector> #include<stack> using namespace std; void reverse(char* s,int start,int...
发表于 2016-04-09 08:41:38
取近似值
0
#include<iostream> using namespace std; int main() { double a=0.0; cin>>a; if(a-int(a)>=0.5 ) cout<<int(a)+1<<endl; ...
发表于 2016-04-08 23:47:25
求int型正整数在内存中存储时1的个数
1
#include<iostream> using namespace std; int number(int num) { int count=0; while(num) { ++count; num=(num-1)# } return count; ...
发表于 2016-04-08 23:28:56
字符串反转
0
#include<iostream> #include<vector> #include<stack> using namespace std; void ResurseString(char* str) { stack<char> s1; ...
发表于 2016-04-08 23:20:08
字符逆序
0
#include<iostream> #include<vector> #include<stack> using namespace std; void ResurseString(char* str) { stack<char> s1; ...
发表于 2016-04-08 23:18:31
字符串最后一个单词的长度
0
#include<iostream> #include<cstring> using namespace std; int LastStringNumber(char* str) { int len=strlen(str); int num=0; char* p=str...
发表于 2016-04-08 23:10:27
求最小公倍数
3
#include<iostream> using namespace std; int gcd(int m,int n) { int a=(m>n)?m:n; int b=(m>n)?n:m; m=a; n=b; int r=0; while(m%n!=0) {...
发表于 2016-04-08 22:55:38
统计每个月兔子的总数
0
#include<iostream> using namespace std; int main() { while(1) { int f1=1,f2=1; int nMonth=0; cin>>nMonth; if(nMonth...
发表于 2016-04-08 22:47:04
首页
上一页
14
15
16
17
18
19
20
21
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题