上一页 1 ··· 27 28 29 30 31
摘要: 1.找出递推关系month[n]=month[n-3]+month[n-1]; 2.依据已知条件得到month[0],month[1],month[2]; 3.根据递推得到month[29]; #include<iostream> using namespace std; int main(){ i 阅读全文
posted @ 2023-04-14 20:49 The-rich 阅读(20) 评论(0) 推荐(0)
摘要: 1.循环遍历所有车牌组合; 2.遍历所有T,找到车牌为T的平方的情况; 3.输出车牌 #include<iostream> using namespace std; int main(){ for(int i=0;i<=9;i++){ for(int j=0;j<=9;j++){ for(int k 阅读全文
posted @ 2023-04-13 20:15 The-rich 阅读(19) 评论(0) 推荐(0)
摘要: 设计思路: 1.给出一个天数。 2.判断距离目标的天数。 3.用距离天数%5,进行判断。 #include<iostream> using namespace std; int sum=0;int statemonth[13]={0,31,28,31,30,31,30,31,31,30,31,30, 阅读全文
posted @ 2023-04-13 15:07 The-rich 阅读(25) 评论(0) 推荐(0)
摘要: 1.选取一个A,遍历A; 2.选取一个B,B!=A; 3.选取一个C,C!=B!=A; 4.输出A,B,C #include<iostream> using namespace std; int main(){ for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++) 阅读全文
posted @ 2023-04-11 21:19 The-rich 阅读(16) 评论(0) 推荐(0)
摘要: 1.有公鸡X,母鸡Y,小鸡Z,计算每种鸡的单价x=5,y=3,z=1/3; 2.确定每种鸡的数量范围,i>=0&&i<=20,j>=0&&j<=33,k>=0&&k<=300; 3.根据百只鸡百钱可以进行枚举 #include<iostream> using namespace std; int m 阅读全文
posted @ 2023-04-10 20:37 The-rich 阅读(24) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31