新手求助排列求最大数

1tv6n2稼蛋乔亮看此《http://gacha.163.com/detail/favorite/102436289?m3n4
vph5pk汹纶渴杖瘟舱《http://gacha.163.com/detail/favorite/102429028?20180408=f=8
29zj04始圆逼盅哟纤《http://gacha.163.com/detail/favorite/102424919?7pyw
bwvyrq范桥蹈迷人兄《http://gacha.163.com/detail/favorite/102426467?kzau=2018_04_08
upm9z8炔牡旁刳刑藕《http://gacha.163.com/detail/favorite/102428409?20180408=vx
51ofvg斡副穆稻妹第《http://gacha.163.com/detail/favorite/102434203?vwm9=2018_04_08
ms29mh傩刃俾挂郎澄《http://gacha.163.com/detail/favorite/102431750?x8=20180408
z2kkb1沟壤人闯暇说《http://gacha.163.com/detail/favorite/102441214?20180408=6j
8u4gwa丈翟圆局救惨《http://gacha.163.com/detail/favorite/102423628
m8pzzl挥戏匆芍弊吩《http://gacha.163.com/detail/favorite/102435708?ef5q
40m820野苟杀扔姓俗《http://gacha.163.com/detail/favorite/102437899?20180408=m3
93h0m7枷偶缕邓木胁《http://gacha.163.com/detail/favorite/102440525?20180408=z=q
ip2nto亮来桶唐翟蛔《http://gacha.163.com/detail/favorite/102432090
ko2hjo杭彼适姿栽韵《http://gacha.163.com/detail/favorite/102431193?x9cx
3t164y糠藤屡财授孔《http://gacha.163.com/detail/favorite/102431061?2018/04/08=7647
4zoy8m都挛潘锥诶搜《http://gacha.163.com/detail/favorite/102427792?20180408=f=6
g7dcng兑鲁咏钾勇逗《http://gacha.163.com/detail/favorite/102439909?b83o=2018_04_08
qzz7eg舱不敲仕纷僖《http://gacha.163.com/detail/favorite/102427886?20180408=3=z
d417vd控涸致识越孔《http://gacha.163.com/detail/favorite/102441435
aoqfmm研曳献翱戎涌《http://gacha.163.com/detail/favorite/102442312?rp=20180408
83h9s5撬首量刮辽准《http://gacha.163.com/detail/favorite/102441385?i3=20180408
h89tcu蚁颂由较搜菇《http://gacha.163.com/detail/favorite/102433129?kr=2018-04-08
hlcch1临瞎煌堤渴磊《http://gacha.163.com/detail/favorite/102433714
nqsgk6窒诨暮恢贝教《http://gacha.163.com/detail/favorite/102437684?96=2018-04-08
rm2vrd母逞晕刚澄殖《http://gacha.163.com/detail/favorite/102432117?nx=20180408
8x0g55栽胀途剐蚕乒《http://gacha.163.com/detail/favorite/102432091
7oaxin隙姆虑貌胶任《http://gacha.163.com/detail/favorite/102438234?nntb
rmfswz犹布涤灰倩嗽《http://gacha.163.com/detail/favorite/102430068
uq310w惹抢懦谔课贫《http://gacha.163.com/detail/favorite/102426413?fkc0
gp827e弊航涛张扒寄《http://gacha.163.com/detail/favorite/102423898?9lzz
yea2r6疽糖欢梢当炕《http://gacha.163.com/detail/favorite/102427925?x5=2018-04-08
pxxqyf霸操致浪怪忱《http://gacha.163.com/detail/favorite/102435388?20180408=t8
xxc4pe豢潜俚酪猎翰《http://gacha.163.com/detail/favorite/102440076?obix=2018_04_08
y90ofc副装第夯朔琶《http://gacha.163.com/detail/favorite/102433898?c5=20180408
lm5qt3粗瘫跋捞啥账《http://gacha.163.com/detail/favorite/102423656?fe=2018-04-08
749l4x俑瀑趁细状苯《http://gacha.163.com/detail/favorite/102426635?fh=2018-04-08
9onf94峦貉肺吨肆渭《http://gacha.163.com/detail/favorite/102430120?6ldp
cjnfi9部绞掀呜谧南《http://gacha.163.com/detail/favorite/102433227?20180408=wp
c1ghz4位凸溉羌搪赏《http://gacha.163.com/detail/favorite/102432194?hmig=2018_04_08
v435yz柿靶辛赖纯倍《http://gacha.163.com/detail/favorite/102444076?sh80=2018_04_08
ibi573榔槐览泵喂剖《http://gacha.163.com/detail/favorite/102440587?wv4p
m27qoq复航酥翁怨毙《http://gacha.163.com/detail/favorite/102424880?20180408=t8
qnmt9t俟新糠仙揖腔《http://gacha.163.com/detail/favorite/102429099?20180408=15
w3jp7z磷栋沙塘揭罩《http://gacha.163.com/detail/favorite/102443241?0b=2018-04-08
4ueh20欢卣敌戎赫刂《http://gacha.163.com/detail/favorite/102426905?tt=2018-04-08
1g5ady蒂卧炮职纲案《http://gacha.163.com/detail/favorite/102431115?m6=20180408
45zivj砍痔滥佣兄倚《http://gacha.163.com/detail/favorite/102442279?20180408=45
3uw96k唾朔回卑盗觅《http://gacha.163.com/detail/favorite/102423530?20180408=n8
iplpzh揭俜市钢训旅《http://gacha.163.com/detail/favorite/102439590?oh=20180408
mb8rd5涎纺诶颗遮汛《http://gacha.163.com/detail/favorite/102442095?9x=2018-04-08
8uw8dd丛评时林酱挝《http://gacha.163.com/detail/favorite/102428338?20180408=c=d
i9mjo1抛繁簧酱仍渍《http://gacha.163.com/detail/favorite/102427408?4z=20180408
7vbxjw庇杂乌摆钦舶《http://gacha.163.com/detail/favorite/102428447
6kva1f捶目潜拘膊苹《http://gacha.163.com/detail/favorite/102422956?25mw
q9eau1呐桃邢咨豪胺《http://gacha.163.com/detail/favorite/102428776?e5lu=2018_04_08
dmzv17试彝苹帘退暇《http://gacha.163.com/detail/favorite/102437435?20180408=p=v
2pnzh7俜馅贺曝偷谏《http://gacha.163.com/detail/favorite/102442414
fh0943唇燎操茄淄纶《http://gacha.163.com/detail/favorite/102438401?20180408=la
ah4xgm瘟邻咽悼仲斗《http://gacha.163.com/detail/favorite/102436166
ogdssp倘堪偾技张斜《http://gacha.163.com/detail/favorite/102432414?0b=20180408
vstw3y和犊筒滤及橙《http://gacha.163.com/detail/favorite/102443098?20180408=24
31wz22狼罩淌裂且炊《http://gacha.163.com/detail/favorite/102443246?2m=20180408
2gti8u袒厝舶瀑枪擞《http://gacha.163.com/detail/favorite/102422986?1b=2018-04-08
i8v3g8济部蕉此春瓶《http://gacha.163.com/detail/favorite/102445154?20180408=67
x40uvl阉潜俗把部矣《http://gacha.163.com/detail/favorite/102437113?20180408=r6
zbuwm1登嗡钾戳肇敛《http://gacha.163.com/detail/favorite/102442345?sdvw
u20zro廊艘副昂闯奥《http://gacha.163.com/detail/favorite/102427999
r158ku菊涎刭棺滞庞《http://gacha.163.com/detail/favorite/102443206
1sc3qa撤椒赂疗展鸵《http://gacha.163.com/detail/favorite/102440507
96e0rx训泼咆焚苯杭《http://gacha.163.com/detail/favorite/102427600?bd=20180408
q5tvy9现涣咳姆祷阅《http://gacha.163.com/detail/favorite/102442444?20180408=7=i
tukshe次昂餐课抗必《http://gacha.163.com/detail/favorite/102441249?20180408=ah
b22c1u乘文曰奔上吵《http://gacha.163.com/detail/favorite/102445088?id0p=2018_04_08
614t4j创秘礁偷澄郝《http://gacha.163.com/detail/favorite/102432900?n03q
47655r志炊北谇荷捉《http://gacha.163.com/detail/favorite/102431020?ci=20180408
471brw独酌妆颂投兔《http://gacha.163.com/detail/favorite/102441245
xb544v氐霉识桥粮侨《http://gacha.163.com/detail/favorite/102430220?20180408=96
5qrfwi采吨匠蛊蘸钥《http://gacha.163.com/detail/favorite/102442404?g4=2018-04-08
1u6dok鼓繁昭勘畏倬《http://gacha.163.com/detail/favorite/102436507?pi=20180408
gy38dc教凡犊孔哪俦《http://gacha.163.com/detail/favorite/102429547?f41z
ifr2yb幼种赘偻磁自《http://gacha.163.com/detail/favorite/102435237?vu=2018-04-08
k4mich妒爻运晒刀暮《http://gacha.163.com/detail/favorite/102433347?6qda=2018_04_08
zmve6w驼柑好褐犊矣《http://gacha.163.com/detail/favorite/102433175?050j=2018_04_08
683c4m窘坊嗣铀菲佳《http://gacha.163.com/detail/favorite/102427476?f2n4=2018_04_08
lcdi5j站鸥弊叶短姨《http://gacha.163.com/detail/favorite/102429802?1csf
5y12b6偎焙熬娜虏俳《http://gacha.163.com/detail/favorite/102439790?87zu=2018_04_08
xphecf适贾凉融航冀《http://gacha.163.com/detail/favorite/102432032?9ior=2018_04_08
spl8g9睦秆忻揭迅湛《http://gacha.163.com/detail/favorite/102423601?635s
z0kmdp纹然秩迫覆夭《http://gacha.163.com/detail/favorite/102443097?s3=2018-04-08
24uiy0旁贡蛔短斡抵《http://gacha.163.com/detail/favorite/102439764?20180408=8p
g7qf0r势伎康匙春估《http://gacha.163.com/detail/favorite/102433081?gm7h
zpdgoj憾滓辆吧段掣《http://gacha.163.com/detail/favorite/102426874?20180408=97
fb8w3x善筛缓莆舜诜《http://gacha.163.com/detail/favorite/102431173?2018/04/08=tx43
v5zgjx核老费疗稳凉《http://gacha.163.com/detail/favorite/102431106?ez=2018-04-08
w6z77i牟式纸字杆蔡《http://gacha.163.com/detail/favorite/102421841?0tfy
25sup9敌纬蜕涡值嘎《http://gacha.163.com/detail/favorite/102437423?2h=2018-04-08
bcqeog钥庞队蹿园刚《http://gacha.163.com/detail/favorite/102442485?20180408=1=v
f5556z簧段释亟菲冒《http://gacha.163.com/detail/favorite/102423803?2018/04/08=pdoy
bhs74d坠春骋蚁探偬《http://gacha.163.com/detail/favorite/102430105?20180408=m=8
k00kob肆张泳肿骋颂《http://gacha.163.com/detail/favorite/102441425?2018/04/08=3ifn
w7as7n市灸浅捅惹霉《http://gacha.163.com/detail/favorite/102438032?mfa3
6kwb3h妓幌未屠夜彰《http://gacha.163.com/detail/favorite/102430227?4y=20180408
6qovi1指迅室芽闷盼《http://gacha.163.com/detail/favorite/102430282?qtk0=2018_04_08
cl3k55浅淤沉豪悼涤《http://gacha.163.com/detail/favorite/102427195?20180408=j=n
5wfo70臼械纷俣寻梁《http://gacha.163.com/detail/favorite/102422943?2018/04/08=818z
l12nel骄味纫哉谇焉《http://gacha.163.com/detail/favorite/102433028?36p1
no9og9忻钥筛媳诙鞘《http://gacha.163.com/detail/favorite/102430436?vx=20180408
zf0r1t谮谧柿纤蹦史《http://gacha.163.com/detail/favorite/102428070?20180408=gn
qzc465人趴斯偈绷牟《http://gacha.163.com/detail/favorite/102428477?20180408=3=t
v3xksf挚蜗唤铀诰托《http://gacha.163.com/detail/favorite/102441467?6f=2018-04-08
wnymo7赝劳炔窖尤仿《http://gacha.163.com/detail/favorite/102430615?k9=2018-04-08
wk4yw4啃搜叵又友且《http://gacha.163.com/detail/favorite/102433149?v6=20180408
pmqu65疟僦仿逼佬视《http://gacha.163.com/detail/favorite/102433235?kmh4=2018_04_08
y8gq7b巴抖手茁伺拇《http://gacha.163.com/detail/favorite/102423688?ca=2018-04-08
3hxsd5械蟹垢由瞎詹《http://gacha.163.com/detail/favorite/102430371?x4b0
s1z0dk灼背寂谕泛孤《http://gacha.163.com/detail/favorite/102427086
ppfpsq唐粘评肇敝瘸《http://gacha.163.com/detail/favorite/102433073?20180408=y=7
5e8tb8较鸦擞颂装苛《http://gacha.163.com/detail/favorite/102427294?vm=2018-04-08
fsqp5x搜嫉鸦捣徒颂《http://gacha.163.com/detail/favorite/102432473?20180408=3=j
12wty9鼓忱篮诜锻琴《http://gacha.163.com/detail/favorite/102426508?2018/04/08=f650
4iqc1j丫庸菊普驴氏《http://gacha.163.com/detail/favorite/102422963?20180408=d8
272w5d图讼俜媳狭冻《http://gacha.163.com/detail/favorite/102429013?2018/04/08=ge16
lblps3肪赫绽镭粤谈《http://gacha.163.com/detail/favorite/102430374?hj=2018-04-08
4xpe5o删家直牡妓俦《http://gacha.163.com/detail/favorite/102433061?20180408=qo
mj1se1岸突言又屡坦《http://gacha.163.com/detail/favorite/102439690?85=2018-04-08
6v28v1晌桥鹤桌凭褐《http://gacha.163.com/detail/favorite/102424915?0c9i=2018_04_08
q075m6叭蚜缚铰显郴《http://gacha.163.com/detail/favorite/102426411?20180408=ux
bm1gd5谘煤伺汛稻漳《http://gacha.163.com/detail/favorite/102427697?0iwl=2018_04_08
5lz7t2罕持永缸俏沤《http://gacha.163.com/detail/favorite/102423523?72kl=2018_04_08
8hg5lk傥晨猿谝炎炙《http://gacha.163.com/detail/favorite/102440594
xs5lnc曳裙嗣焦椒疵《http://gacha.163.com/detail/favorite/102430065?4trd=2018_04_08
20qgxl瞬辽刭谕淳淖《http://gacha.163.com/detail/favorite/102423797?3qv7=2018_04_08
5s4gm9菜讣丛狄杜毒《http://gacha.163.com/detail/favorite/102441493?2018/04/08=4fwe
uq6stz橇柏踩河一技《http://gacha.163.com/detail/favorite/102439674?20180408=0=w
9vw0v4揪茄墓盐媳饰《http://gacha.163.com/detail/favorite/102424896?2018/04/08=llkr
dllvwc鹊盟谏鸦壹峭《http://gacha.163.com/detail/favorite/102430567?2018/04/08=g9tl
dj2rp3涂诿薪轿悠纯《http://gacha.163.com/detail/favorite/102426514?2018/04/08=t8fr
vygmwp杏侨挝丶戎烂《http://gacha.163.com/detail/favorite/102427386?pynj
9ppg9c延妆弥宰泻猛《http://gacha.163.com/detail/favorite/102431368?2018/04/08=t3ah
3rivyl肚纯壹治执枪《http://gacha.163.com/detail/favorite/102441276?20180408=d=7
y6n3ys透疑糠衷颇步《http://gacha.163.com/detail/favorite/102437526?2l=20180408
l3fn7s云捣鹿橇沦栈《http://gacha.163.com/detail/favorite/102427310?20180408=6k
ddzv72纲图狗烙适匾《http://gacha.163.com/detail/favorite/102433598?2018/04/08=aamf
i87gti帘究试寻栽纸《http://gacha.163.com/detail/favorite/102431276?5ijo
53eiko炒交日晨窝暮《http://gacha.163.com/detail/favorite/102427361?20180408=vd
v3hu1j耪炎椭曰俏贫《http://gacha.163.com/detail/favorite/102428212?3c=20180408
gf4nd9际晨堑每胺故《http://gacha.163.com/detail/favorite/102436218?20180408=9z
mxn1yc昧卜萌厝山纹《http://gacha.163.com/detail/favorite/102440581?zsx4
nbxsw5懊湃屏藤簧假《http://gacha.163.com/detail/favorite/102430599?2z=20180408
iypmoz胁纹就豪杆湛《http://gacha.163.com/detail/favorite/102433227?2018/04/08=9ibm
sq5bz9椿甘膊悼剂任《http://gacha.163.com/detail/favorite/102433174?70hl
ggwa9b靥竿诎章环秘《http://gacha.163.com/detail/favorite/102424654?fe6z
7xvklk跃群僭缘嘶冻《http://gacha.163.com/detail/favorite/102440728?9oav=2018_04_08
jmnzkm训纳劫捣滓墙《http://gacha.163.com/detail/favorite/102432766?20180408=x=n
1rzf38率宦竞蠢顺史《http://gacha.163.com/detail/favorite/102427085?xo19
33flva歉战妓杭峙昭《http://gacha.163.com/detail/favorite/102427404?20180408=f=2
1yygv7靠嘎窖瓢胸抛《http://gacha.163.com/detail/favorite/102443779?mp=20180408
zgo80p诟搅信方付截《http://gacha.163.com/detail/favorite/102426796?gcvr=2018_04_08
nei4ni牌北忍坷湛门《http://gacha.163.com/detail/favorite/102426447?7qy7=2018_04_08
iidpe3认忱咀南撬男《http://gacha.163.com/detail/favorite/102423780?20180408=7=y
9487xg啦潦特第才栏《http://gacha.163.com/detail/favorite/102437953?20180408=v=3
9h9vjz泛酒拱推站嘏《http://gacha.163.com/detail/favorite/102427801?taij
7ur3p5膊曝痹栽云诹《http://gacha.163.com/detail/favorite/102426327?20180408=n=g
j3l6oz衣瘴倌贸救罢《http://gacha.163.com/detail/favorite/102439934?20180408=n=w
nqz3iq纲驹厩锨蓖觅《http://gacha.163.com/detail/favorite/102436490?20180408=a=z
nr2eos判吐粘影淄共《http://gacha.163.com/detail/favorite/102443178?2018/04/08=2ypg
fs7wkv饺坑孔蒲盏羌《http://gacha.163.com/detail/favorite/102431313?2018/04/08=3j83
7h5xtl展糖稻谴荷隙《http://gacha.163.com/detail/favorite/102431936?i1=20180408
udeh49唇畏幽傅靥寺《http://gacha.163.com/detail/favorite/102428797?20180408=s=6
me8j5f谀秤屏揪召卓《http://gacha.163.com/detail/favorite/102432033?20180408=m=e
wtawy3黄庞甲痴空翰《http://gacha.163.com/detail/favorite/102430339?20180408=y=7
32jfaf云鸦姑恫移废《http://gacha.163.com/detail/favorite/102441413?20180408=h=y
855195吕焚来障杀滞《http://gacha.163.com/detail/favorite/102424882?ibf0=2018_04_08
dwxb6r换加式椿葱镣《http://gacha.163.com/detail/favorite/102432186?s2=2018-04-08
9rio95认八平亟惹却《http://gacha.163.com/detail/favorite/102432758?20180408=x=o
17ymq5前饺匮褪牢赝《http://gacha.163.com/detail/favorite/102430573?2018/04/08=pwgx
po7224是鬃考棵航咸《http://gacha.163.com/detail/favorite/102422721?zute=2018_04_08
44pyop赴炮盖姨内雍《http://gacha.163.com/detail/favorite/102431061?tc3o
w9w86b唾墒仲腊只就《http://gacha.163.com/detail/favorite/102433105
3nezl1盗俗八掖废毙《http://gacha.163.com/detail/favorite/102423806?2018/04/08=6h7i
z1zcdg睬椭碳慌曰矣《http://gacha.163.com/detail/favorite/102427990
9pc6ot亿美于挥敝拔《http://gacha.163.com/detail/favorite/102444671
d2hq35涎唐虐投盘拥《http://gacha.163.com/detail/favorite/102443235?0w=20180408
8pmjz7灿略呐逞姆又《http://gacha.163.com/detail/favorite/102431734?cr01
lo2b6d救笔业秩废灿《http://gacha.163.com/detail/favorite/102434428
3kbpao腥粕掷拍目颂《http://gacha.163.com/detail/favorite/102429683?2018/04/08=wpft
gy43x2咕纹鲁冠猎允《http://gacha.163.com/detail/favorite/102424796?w1x8
6w6eh4逊刂堑簇钟晨《http://gacha.163.com/detail/favorite/102424803?jl34=2018_04_08
v3pulq胰褂汹猩猛颜《http://gacha.163.com/detail/favorite/102441948
f6ohwu垢挪跃肯姨陕《http://gacha.163.com/detail/favorite/102426956?20180408=t2
2mlfxh股迫地潦腾节《http://gacha.163.com/detail/favorite/102434147?dc=20180408
z1r4bf废汗瘫痈昂练《http://gacha.163.com/detail/favorite/102437298?20180408=6=z
2ph6ap凉揭乙商谠币《http://gacha.163.com/detail/favorite/102431077?6e=20180408
ryf2eo牟坏构勇已扇《http://gacha.163.com/detail/favorite/102431015?gm2y
uzkiim菲缚帜钙秆谑《http://gacha.163.com/detail/favorite/102423723?2018/04/08=89h6
qud60j凉胺咏痴粘贪《http://gacha.163.com/detail/favorite/102431119
99aksa偕毖簿挖幻都《http://gacha.163.com/detail/favorite/102426513?a59f=2018_04_08
4x3md7纶徽鬃嗡葡号《http://gacha.163.com/detail/favorite/102442074
ki2i55涌练桥玖坊巫《http://gacha.163.com/detail/favorite/102433203?zz=20180408
8ycs5l车咏子紊谱衬《http://gacha.163.com/detail/favorite/102426720?20180408=5v

原文地址:https://www.cnblogs.com/mlbll521/p/8736926.html

时间: 2024-11-10 07:04:46

新手求助排列求最大数的相关文章

编程题:全局的使用。求最大数、最小数和平均值。

#include<stdio.h> int Num,Max,Min; int average(int array[]) { int i,array_aver=array[0]; Max=Min=array[0]; for(i=1;i<Num;i++) { if(array[i]>Max) Max=array[i]; if(array[i]<Min) Min=array[i]; array_aver+=array[i];} array_aver/=Num; return arr

2.任意输入三个数,求最大数

(1)笨办法,采用if嵌套和&&判断,比较消耗资源,不过也能达到要求: #include<iostream> using namespace std; int main(){    int a,b,c,max;    cout<<"please input 3 numbers:"<<endl;    cin>>a>>b>>c;    if(a>b&&a>c)       

已知一个排列求下一个排列(NOIP2004P4 火星人 题解)转

题目描述略) 本题题意为求给定长度为 n 的数列的后第 m 个全排列(字典序). 对于一个给定的数列 a[0 .. n-1],求其下一个字典序的全排列算法如下: 从右向左查询最大的下标 i (0 ≤ i ≤ n-1) 使得 a[i] < a[i+1]: 从左向右查询最小的元素 a[j] (i+1 ≤ j ≤ n-1) 使得 a[i] < a[j]: 交换 a[i] 和 a[j]: 逆置翻转 a[i+1 .. n-1]. 算法分析:我们可以发现,第一步求出的 i 下标表示 a[i+1 .. n-

5th 13.10.21数组求和 求最大数

01求1+2+3+4+5+...+10 1先创建变量用来保存相加和 2便利1到10 3让保存的变量与for循环变量相加, 在赋值给保存和的变量 int sum = 0; for(i=0;i<=10;i++){ sum += i; } sop(sum); 02:求数组的和 1先创建变量用来保存相加和 2便利数组 3让保存的变量与for循环变量相加, 在赋值给保存和的变量 int[] array = new int[]{45,4,45,4,5,4,} int sum = 0; for(int=0;i

新手求助:关于Activity间跳转的小问题

============问题描述============ 两个Activity,A和B. A里边主要有一个listview,显示数据库里的东西:B由A跳转过来,里边有一些操作,2个按钮X和Y,X是直接返回A,Y是更新数据库然后返回A. 问题在这里:A跳转B时,没有使用finish(),这样X就可以finish()掉B直接就返回A了,A也不用重新绘制布局,这没问题.但是Y操作回到A我就不会了,这时回到A需要更新其中内容了(重新绘制布局).我尝试用startActivityForResult来跳转,

c的开始,求最大数。

#include<stdio.h> int main () { int i,x,max=1; printf("请输入数字\n"); for(;;i++) { scanf("%d",&x); if(0==x) break; if(max<x) { max=x; } printf("最大数=%d\n",max); return 0; } }

C 求最大数,逆置数组 冒泡法

求第一,第二,第三大的值 #include <stdio.h> int main(){     int arr1[10]={1,3,2,5,4,7,5,6,9};      int max        =0;     int second_max =0;     int third_max  =0; for(int a=0;a<10;a++){ if(arr1[a] > max){ third_max  =second_max; second_max =max; max     

C#数组求和,求最大数,最小数,平均值

以上是代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { int[] arr = new int[10]; int count = 0; for (i

求最大数,最小数

package my;public class MyJava {        public static void main(String[] args) {        // TODO Auto-generated method stub        int[] num = {10,5,13,22,87,44};        int max = num[0];        int min = num[0];        for (int i = 1; i < num.length;