从1到599的卡片,所有4不要,还有多少张卡片?
含有4 的卡片:1——99有:20-1=19张
100——199有:19张
200——299有:19张
300——399有:19张
400——499有:100张
500——599有:19张
所有4不要,还有卡片数为:
599-(19X5+100)
=599-195
=404张
绛旓細鍚湁4 鐨鍗$墖锛1鈥斺99鏈夛細20-1=19寮 100鈥斺199鏈夛細19寮 200鈥斺299鏈夛細19寮 300鈥斺399鏈夛細19寮 400鈥斺499鏈夛細100寮 500鈥斺599鏈夛細19寮 鎵鏈4涓嶈锛岃繕鏈夊崱鐗囨暟涓猴細599-锛19X5+100锛=599-195 =404寮
绛旓細1鍒699闄ゅ幓甯4鍜屽甫7鐨勬诲叡鏈383涓暟瀛椼傛垜鐢‥XCEL鐨刅BA绌蜂妇鐨勩係ub 瀹1()n = 1 For i = 1 To 699 j = Application.Text(i, "000")If Not (Right(j, 1) = 4 Or Right(j, 1) = 7 Or Mid(j, 2, 1) = 4 Or Mid(j, 2, 1) = 7 Or Left(j, 1) = 4 Or Left(j,...
绛旓細鎵鏈鏁存暟锛15,45,51,54,57,75,105,135,150,153,156,159,165,195,225,252,255,258,285,315,345,351,354,357,375,405,435,450,453,456,459,465,495,501,504,507,510,513,516,519,522,525,528,531,534,537,540,543,546,549,552,555,558,561,564,567,570,573,576,579,582,585,...
绛旓細int main(){ int i=1,n=0,a,b,c;for(i=1;i<600;i++){ a=i/100;b=(i%100)/100;c=(i%100)%10;if(i%3==0&&(a==5||b==5||c==5)){ printf("%4d",i);n++;if(n%6==0)printf("\n");} } printf("\n%d",n);return 0;} ...
绛旓細鈶′袱涓9锛氬彟澶栧彲浠ラ夋嫨1鍜5锛屾湁3涓綅缃彲浠ユ帓濂斤紝鍙﹀涓や釜9閮藉彲浠ュ綋6浣跨敤锛屾墍浠ュ叡鏈 2脳3脳2脳2=24锛堢锛夋墍浠ュ叡鍙互缁勬垚涓変綅鏁 12+24=36锛堜釜锛夊垪涓惧涓嬶細鈶156銆159銆165銆195銆516銆519銆561銆591銆615銆651銆915銆952 鈶166銆169銆196銆199銆566銆569銆596銆599銆616銆619銆656銆659銆...
绛旓細浣犲彧瑕佽緭鍑鸿繕鏄竴瀹氳鐢ㄦ暟缁勶紝濡傛灉鍙杈撳嚭锛岀敤涓嬮潰鐨勫氨琛屼簡 for (int i = 1; i <= 599; i++)if ((i % 3 == 0) && (i.ToString().IndexOf('5') >= 0))Console.WriteLine(i);Console.ReadKey();
绛旓細int i,count=0,index=0,num[599];//鎵惧嚭1鍒599涔嬮棿鍚湁3鐨勭礌鏁,骞跺皢杩欎簺鏁板瓧瀛樻斁鍦ㄦ暟缁刵um涓 for(i=1;i<=599;i++){ if(isSuShu(i)==1){ num[index]=i;index++;} } printf("1鍒599涔嬮棿鍚湁3鐨勭礌鏁版湁锛歕n");for(i=0;i<599;i++){ if(num[i]>0){ //杩欎釜鍒ゆ柇鏄幓鎺...
绛旓細500锝599锛100涓 0锝10锛 1涓 10锝49锛4涓 50锝59锛10涓 60锝99锛4涓 100锝199锛1+4+10+4=19涓 200锝499锛19脳3 = 57涓 涓鍏100+19脳5=195涓 涓嶅惈鐨勪竴鍏600-195=405涓
绛旓細for(i=1;i<=599;i++){ a=i%10;//涓綅 b=i/10%10;//鍗佷綅 c=i/100; //鐧句綅 if(i%3==0&&(a==5||b==5||c==5)){ cout<<i<<endl;} else continue;} return 0;} 鍦ㄤ綘鐨刦or寰幆鎷彿涓紝for(i=1;i<=599;i++;)涓嶅簲璇ユ湁鏈鍚涓涓垎鍙凤紒鍏朵粬鐨勫氨鏄櫨浣嶆暟瀛楄幏寰楃殑鏃跺...
绛旓細涓嬮潰鎴戜滑姣旇緝涓涓嬫渶灏忓伓鏁2鍜屾渶澶у伓鏁600鐨勫瓨娲诲嚑鐜囷細A銆佸浜600鏉ヨ锛屽鏋滆瀛樻椿锛屽繀椤婚愭闄嶄綅锛屾渶缁堥檷鑷2瀛樻椿銆傚嵆鍦ㄥ墠闈㈢殑598杞腑锛屾湁299杞浜庡鏁颁綅鏃朵篃鑳藉瓨娲伙紙澶勪簬鍋舵暟浣嶇殑299杞繀瀹氬瓨娲伙紝杩299涓100%灏辩渷鐣ワ紝涓嶄箻鍏ヤ笅寮忎簡锛夛紝鍏舵鐜囦负锛(1/2)脳(2/3)脳(3/4)脳(4/5)脳鈥︹γ(...