- 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 HUAWEI campus recruitment questions answer)
2014华为校园招聘试题答案(2014 HUAWEI campus recruitment questions answer)
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 writ
您可能关注的文档
- %国外生活必备的英文词汇-饮食%(Foreign essential English Vocabulary - diet%).doc
- (all鸣)小鸣争夺战((all Ming) Xiaoming battle).doc
- (免费)值得一看_高数考研150谈经验((free of charge) is worth a look _ high number of PubMed 150 to talk about the experience).doc
- (转载)健康的真正内涵((Reprint) the true meaning of health).doc
- (持续添加修正)各地名店名厨多款流行火锅蘸料、味碟配方经典总汇(麻酱、沙茶、海鲜、香辣、肥牛等)((continue to add a variety of popular famous chefs around the Amendment) Hot pot Zhanliao, Weidie classical formula (sesame, barbecue, seafood confluence, s.doc
- (pmu专稿)项目经理在电子政务建设中遭遇的种种困境((PMU) project managers encountered various difficulties in the construction of E-government).doc
- (第1章) 单片机教案((first chapter) SCM lesson plan).doc
- + 有用的第7章_风湿病、痛风及骨科疾病(The seventh chapter _ + useful for rheumatism, gout and Department of orthopedics disease).doc
- + 有用的执医考试(Useful medical examination).doc
- +有用 的第6章_血液系统疾病用药(The sixth chapter _ + useful treatment of blood system diseases).doc
- 《基于人工智能的模具数字化设计辅助系统开发与性能评估》教学研究课题报告.docx
- 小学数学数字教育资源开发中的学生参与式设计策略分析教学研究课题报告.docx
- 小学科学教育数字化资源公平配置与科学探究方法教学实践教学研究课题报告.docx
- 初中历史教学中学生历史研究方法的培养路径分析教学研究课题报告.docx
- 7 《民间艺术在文化品牌中的品牌形象塑造与市场竞争力研究》教学研究课题报告.docx
- 初中英语听说教学资源动态定价策略与高效配置研究教学研究课题报告.docx
- 小学劳动教育课程与信息技术相结合的探索教学研究课题报告.docx
- 基于深度学习的教师教学画像构建与评价指标权重研究教学研究课题报告.docx
- 基于问题解决的数学实验教学模式创新与实践教学研究课题报告.docx
- 生成式AI在初中化学教学评价中的应用:构建科学评价体系教学研究课题报告.docx
最近下载
- 专题08 名著阅读(两部名著)-【好题汇编】备战2023-2024学年八年级语文上学期期末真题分类汇编(江苏专用)(解析版).docx VIP
- 数据库管理与开发项目教程杨云课后参考答案.docx VIP
- 智能机器人系统:智能机器人SLAMPPT教学课件.pptx VIP
- 土木工程施工方案.docx VIP
- GB_T 9711-2023石油天然气工业 管线输送系统用钢管.doc VIP
- 大学“十五五”时期党的建设专项规划.docx VIP
- 《中医入门,秦伯未著.doc VIP
- 2024小红书餐饮行业方法论报告.pdf
- 专题02 名句默写(四大题型)-【好题汇编】备战2023-2024学年八年级语文上学期期末真题分类汇编(江苏专用)(原卷版).docx VIP
- 第四章平面问题的极坐标解答作业点评1演示文稿.pdf VIP
原创力文档


文档评论(0)