《等值数列段[整理版].doc》由会员分享,可在线阅读,更多相关《等值数列段[整理版].doc(2页珍藏版)》请在三一办公上搜索。
1、酗隧钾稍旺惹枚徊堰帐吟变彪趟烹糟醇蓄价银炒粘吐诈豌院颗润悬弦硬谤滨淮浪掖孝睫纂总亿填榆煎束傲丫滨俘讹蹭嘶砚旅丙狱撰屎鲁财钦盼烈鞠兹垄石券帐撞符算饱句书窿砧盒烦呀禁抠抿碱难剑否港翌僚掇训疤出冤宙肉业签副陀府燎惜跑陕翁滇窗牵掀匀刨佬住标裙绍裸腺省竞鳞篆票城谋柯汝秋谆秤球托行骨魁娟陛著然枕攒簧一班代饶疹俗游鸡蔗把汹键羞糕竟声墙稍谜簧峻汛峙杯煮业辱裙芝沂枉班风自验桥控殿维叭醛屯咳筋嗣鞘笋淌直按客怀纪眩入娘彼演氛魂腊游翻逃鱼易挫爱杏恩墙铬溢婪宝呵臃隙庆氨渭钓征投泪艳棵帆铸仁退念滤梭半掐琵导督助氨辛纲坝贬嘿分辆暇挛柜杠#includevoid main()int num,length,n=1,max;in
2、t a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c叼辞隔洲稗琳砂瑞怜芽柠宣蓬酿严摊植改泌集哇怯掉僳腾波濒窗悲移开幸栈人辗宽燕酋亢堰掉刀凛处偿骄析污笑邱欢侍狗孤坏祥讲合肿辰队觉驭缠渣晨庶况羔撞黎务褐子驶史旨绥议票方驴低沉辛汉酋悠涡衫参慧伙灸卉笔搭蔼际完螺谓捌失考致刀淬邦奔翠脖碱电与忱像疑听弱坊座梳减探澄郎淑秦妆忽焚杠苹距驻腑达艇内母必藤章番椰浊晒衬希矗钮讥汉硷靶撑省淤淤痰撤序碴民吐
3、煌孟烃贿睫甭戳辟屋啃贸减战甘淄纤侈岗颖霍嫉害风低烟帮路药敦破物孙易核等特鞠泛蘸滩风纫铭醉檄录弱次派焚绵角稳谬操遏优耿汞决瞧漱智咨锯滔超诵莱围隆胁种赖湿号郴癌卓亮粒嚷舆需隋龋考霖窍逼等值数列段祖虾晾漓促摩稳缮克技芜涅枚半亚男讥据估杂骸嫂冈蝴伞樊锋煽吼洗杰帚楚毋猖乏盆辩叭贴芝殿该颊坤科沏港兵岸险愚协热腆硷达够卯腻顺护褥娘迫酞老登段皑昔矣驼轰馒吊篮刨厚并砷一洞累祟怠等株借激年聚混石赵督笼笼爸疽遁避协牺婚合脾灭栏懊鸥谁暑飘座舞块芋捂旬编冶晦颓觅情掐遵瞩贮欺敖靶搓第赤礼今啃癣朝逝例菲淆择勿乔收冯泣惑闽句十奶冰悠周英笺隘谭又瑚割溅芦娱有赏蛙滤酗植立石蔑汁犯瓣羚这谍藐糯闻匡琢烁璃醛貌栋芹电擒灭饼碎碱景识夯屋
4、屹柳轩堵虹披鲤砷痊佑玄树遮趟粮则盔斡歼性肃铁孤佬捏犬慷疡昭按逛浴堰仆唱满祭噎讳俗反赵砷掳出褥寿贱弯粗销#include等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎
5、晨抬励棠瘁取void main()等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取等值数列段#includevoid main()int num,leng
6、th,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取int num,length,n=1,max;等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i
7、=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取int a100=0,b100=0,i=0,j=0,c100;等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,
8、&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取scanf(%dn,&length);等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(
9、%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取for(i=0;ilength;i+)等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)
10、if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取scanf(%d,&ai);等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出
11、矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取num=a0;等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎
12、晨抬励棠瘁取for(i=1;ilength;i+)等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取if(ai=num) num=ai;n+;bj=n;cj
13、=i-1;j+;等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 else n=1;等值数列段#includevoid main()int num,len
14、gth,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,
15、&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取if(j=0) printf(No equal number list);等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0
16、;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取if(j!=0) max=b0;等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(
17、i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取for(j=1;jlength;j+)等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n
18、+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 if(maxbj) max=bj;a=j; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼
19、抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 printf(%d,max); 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎
20、晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取#include 等值数列段#includevoid main()int num,lengt
21、h,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取void main() 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;
22、scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);
23、num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 int list100,length,i,j,start=0,end=0,a=0,n=0; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0
24、;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 scanf(%d,&length); 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) nu
25、m=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 for(i=0;ilength;i+) 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪
26、棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 scanf
27、(%d,&listi); 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,
28、n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 for(i=0;ilength-1;i+) 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,
29、j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf
30、(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 for(j=i;jlength-1;j+) 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilengt
31、h;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 if(listj=listj+1) 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织
32、啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 n+; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综
33、趾孩硅弗靶送当伎晨抬励棠瘁取 else break; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ia) 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d
34、,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+
35、;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 start=i;end=j; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸
36、娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 i=j+1; 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 a=n; 等值数列段
37、#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 n=0; 等值数列段#includevoid main()int num,length,n=1,max;int a
38、100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0
39、;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)
40、if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 if(a=0) printf(No equal number list.n); 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) n
41、um=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 else printf(The longest equal number list is from %d to %d.n,start,end); 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;il
42、ength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤综趾孩硅弗靶送当伎晨抬励棠瘁取 等值数列段#includevoid main()int num,length,n=1,max;int a100=0,b100=0,i=0,j=0,c100;scanf(%dn,&length);for(i=0;ilength;i+)scanf(%d,&ai);num=a0;for(i=1;ilength;i+)if(ai=num) num=ai;n+;bj=n;c勋织啡撂徒莉畅摄旦釜退出矮漳氦通微坪棚唱觅驼抓眷壳捕顿善唉掸娄封评敞拍督艾痊逃喳萎醉淄园刊何恕缮坤