- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2014华为校园招聘试题答案(国外英文资料)
2014华为校园招聘试题答案(国外英文资料)
2014 HUAWEI campus recruitment exam questions and answers
========================================
1 find the length of the last word in the string
*******************************************************************
*hello
*hello____word____
*
*******************************************************************
#includestdio.h
#includestring.h
Void, main ()
{
Char a[128];
Int b[128];
Int, m=0, n=0, len, I, j=0;
Gets (a);
Len=strlen (a);
For (i=0; ilen; i++)
{
If (a[i]==)
{
B[j]=0;
J++;
}
Else
{
B[j]=1;
J++;
}
}
For (j=0; jlen; j++)
{
If (b[j]==0)
{
N=0;
}
Else
{
N++;
M=n;
}
}
Printf (%d, m);
}
2 a sequence of DNA consists of four letters of A/C/G/T. The ratio of G to C (defined as GC-Ratio) is the total number of occurrences of the two letters of the G and C in the sequence, divided by the total number of letters (that is, the length of the sequence). This proportion is very important in genetic engineering. Because high GC-Ratio may be the starting point of genes.
Given a long DNA sequence and the minimum length required, researchers often need to find the highest subsequences in GC-Ratio.
# include stdio.h
# include string.h
Void, main ()
{
Char, a[256]={0}, b[256]={0};
Int, n=0, len=0, i=0, j=0, k=0, p=0, temp=0;
Gets (a);
Scanf (%d, n);
Len=strlen (a);
For (i=0; ilen-n+1; i++)
{
K=0;
For (j=0; jn; j++)
{
If (a[i+j]==G||a[i+j]==C)
{
K++;
}
}
If (tempk)
{
Temp=k;
For (p=0; pn; p++)
{
B[p]=a[i+p];
}
B[n]=\0;
}
}
Printf (%s, B);
}
3 output 7 numbers relating to numbers, including multiples of 7, and the number of 7 digits (such as 17, 27, 37, 70, 71, 72, 73,...)
# include stdio.h
Void, main ()
{
Int, I, N, count=0;
Int, a, B, C, D, e;
Scanf (%d, n);
Count=n/7;
For (i=1; i=n; i++)
{
If (i%7==0)
{
;
}
Else
{
E=i/10000;
D= (i-e*10000) /1000;
C= (i-e*10000-d*1000) /100;
B= (i-e*10000-d*1000-c*100) /10;
A= (i-e*10000-d*1000-c*100-b*10);
If (7==a||7==b||7==c||7==d)
{
Count++;
}
}
}
Printf (%d, count);
}
4 write a program that accepts a string with le
您可能关注的文档
- 人工呼吸与胸外心脏按压考试试题(空)-武冠英.doc
- 人工呼吸与胸外心脏按压考试试题答案.doc
- 乘坐国际航班行李能带什么.doc
- 什么叫噪音呢.doc
- 什么是静电.doc
- 中药学重点药物.doc
- 什么是高压氧疗法.doc
- 什么血型最长寿?长寿人性格特点.doc
- 从奇石鉴赏的核心要领谈长江奇石的价值取向.doc
- 从心做起 真诚相待.doc
- 2014年北语语用考研完整经验(国外英文资料).doc
- 2014-4-19 百度权重9的顶尖旅游站案例(国外英文资料).doc
- 2014年日本留学入学理由书撰写技巧(国外英文资料).doc
- 2014年必威体育精装版无线J2ME设备上实现http传输方法代码【李虎】(国外英文资料).doc
- 2014年河南省新乡市中考数学一模试卷 _20140612_170236(国外英文资料).doc
- 2014必威体育精装版版德福考试必备复习资料大全(国外英文资料).doc
- 2014年历史会考知识点(国外英文资料).doc
- 2014考研英语图表作文写作方法和模板(国外英文资料).doc
- 2014高考物理考点汇总(国外英文资料).doc
- 2013年创业公司若何寻到最适合的人才(国外英文资料).doc
文档评论(0)