生日蜡烛生日蜡烛


生日蜡烛


某君从某年开始每年都举办一次生日party,并且每次都要吹熄与年龄相同根数的蜡烛。


现在算起来,他一共吹熄了236根蜡烛。


请问,他从多少岁开始过生日party的?


请填写他开始过生日party的年龄数。

注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字


慕粉3659508
浏览 1728回答 2
2回答

慕瓜9220888

DFBRQOILMBJZOSSGTNBTSYOYZDQWVHUBYMQTJKXMXYEEODLLBUOZFIEJFEUEPZERGMCHIIMGMLRRGKIFQMERDQXBYPQINPHUWZKQHGMQDCJCTIQTLFIVELHKPBVEBXKDTOCJMZWUHJIUANKXBJIKPCZPZFHTVHFSVVSDYOWNGTQBVOQYLLIYQRNZKHEORBGTWIOBIBKZGCSMGKULWCCSJPHOPRNCITWUHFSIZWQNBVUNXQDHEICPEHENBFJNGJMFEZMTOCKAGQKNBCJOLEKESWYOXZRXERFPFQGZYGVJNCEUDMQKIYJJDIUHREYQWFIPZAREBQTGSSMDJRZVUKOIWQOWZZYMGUCJVLKAHBZCWIOUNBWAXDOGEQNQDWBFGCAHAHEIYDZLOYYLOLHAWJWJSIQGFSWNUVHDJZVHRVPDIUMOVYBUNFKZLSLYEYASVCFVFKRTYUWPTTQFGIAGUOHRUFYDFVIUNZNZYUANQUIGSHDANJTVAQIYRERRMXJNPLVILEFVVNRUAUSDZKWZWQPDOQUWZUNHLDZTYCQALRDPOBPTAEHIVPVZZNXBMCLOLFJDMNJTIRCGTVGCCITCWMEWLRROWZDNJVBHHKYYVPICYSZXKYUWCIGQDTFBHDOSWAEQINZWJQDZIQCKWZZJHVWDSEVOIYJKFRTVISWNOQSEHVYVGEGFXOXRWWMVXJNTGHRJZVBFFJTQOQZRIRGTSKMYKPIFOPQSKDQDGOKFKGPVSLECDNPUXKXRJUWFIMZPSUCOODYVKLKLRAQKVYSHCPCRFJTQQWRHGQOCGZBTHHUOMWPQUQPZNHBNOIEEYCGTPNDDWQMWQFHWGVWQHRPQDEKHBJDKFEKDEIVGAPZLKYIECKGNZPZLFTYDVHTGCZJTOGSGZQDNNVETVIVZVPHYKWCPMPUPEOBVOBGNCEURYLHRJEDZFTHLYNOAMHBURUTIHSYRWJGLFEQCCFZCTOSAWTZTMIMOXZWZCVIZBUCWFCWMNJENUNTNZLRZLOICIWQMOGKAKGBSOJSPIFFJACONRLYRAHNVLYDQRKVOENUNKTWEYTFZCFVLJLDJIJSXXFNPVREBLNOUQIVOOOSAYXLEIEODSNDJIMCNUKDTVLOBQAIHOGTWZMETSEZCGMGPQFYWDQMGDPIBDGBIOLHQSOROHLIQPUQNQNNNIVXNTQMQDCUWVPLPYKVYSUXAHQCHTNSFSCCBNJFODXKUONSSIFZXBAZLRYPAOOJLVBREHUOUOKHWHUZMGLPVLMGTUTDWWSZMXXVKPVRFZJNEWVVBYIWAWXDZWQAORBNTSISEISZYKGCQWNXSEFLECHKOMRDOUHAXKYTFYFIVIVVQWYXNGJDOCIEYRVIENSJDJVVCSKSEGCHENABPBNVZHHDWYXKSWCFVAMIKWZYOCLQIRMGTGMWMLCOBEKEMUKVROXBWKCIYUSEIMFEJJFGJHRHCCBHICLFNYFIFPAYICRADMKHBFNSIYLYIYVKGMSTOYNHZYLAQKEIYBAGMCRYPDJFEUURLPJEFIXNEISWLGACOCPWQCGJKZQNAGTXTIEFGTMRMLHGSPZMJHTPKKRKZZYACIVEUYCWGYKDATNLPCOKXIVITQVEQTMMF

菜鸟Kris

int i ,j,sum; for(i=10;i<100;i++){     sum = 0     for(j=i;j>10;j--){         sum+=j;         if(sum==236){             syso(今年年龄为  +i)             syso(从什么时候开始办派对 +j)         }     } }我用的是java ,没注意看这是C上的,但是思路就这样,syso  你改成cout<< 就好了。

DOUBLE_l

26。两个for循环#include <stdio.h> int main() { int old,sum,n; for(old=1;old<100;old++) { for(sum=0,n=old;sum<236;n++) { sum+=n; } if(sum==236) { printf("%d",old); break; } } }
打开App,查看更多内容
随时随地看视频慕课网APP