[编程入门]打印图案-题解(C语言代码) 摘要:简单粗暴 #include "stdio.h" int main() { printf(" *\n"); printf(" * *\n"); printf("*****…… 题解列表 2020年02月21日 0 点赞 0 评论 913 浏览 评分:6.0
[编程入门]三个数找最大值-题解(C语言代码) 摘要:#include int main() { int max1,max2,a,b,c; scanf("%d%d%d",&a,&b,&c); max1=(a>b)?a:b; max2=…… 题解列表 2020年02月21日 0 点赞 0 评论 828 浏览 评分:6.0
[编程入门]带参数宏定义练习-题解(C语言代码) 摘要: #include #define change(a,b) a=a+b,b=a-b,a=a-b int main() { int a,b; …… 题解列表 2020年02月23日 0 点赞 4 评论 756 浏览 评分:6.0
[编程入门]成绩评定-题解(C++代码) 摘要:#include using namespace std; int main() { int num; cin >> num; if (num >= 90 && n…… 题解列表 2020年02月24日 0 点赞 1 评论 697 浏览 评分:6.0
[编程入门]数字的处理与判断-题解(C++代码) 摘要:#include #include using namespace std; int main() { int num; /** 计数器*/ int sum=0…… 题解列表 2020年02月24日 0 点赞 0 评论 841 浏览 评分:6.0
优质题解 基于动态规划思路的拿糖果解题方案 摘要:思路: 1.当M个糖果减去2q个变成M-2q个就转换了状态,这是典型的动态规划思想,dp[M]=max(q+dp[M-2q]) 2.考虑到N…… 题解列表 2020年02月24日 0 点赞 0 评论 1363 浏览 评分:6.0
[递归]母牛的故事-题解(C++代码) 摘要:#include using namespace std; int main() { int x; while(cin>>x&&x!=0) { int temp; in…… 题解列表 2020年02月25日 0 点赞 0 评论 1004 浏览 评分:6.0
陶陶摘苹果-题解(C++代码) 摘要:#include using namespace std; int main() { int x[10];//苹果高度 int y;//长 int k=0;//能碰到的苹果…… 题解列表 2020年02月25日 0 点赞 0 评论 585 浏览 评分:6.0
数字整除-题解(C++代码) 摘要:#include #include using namespace std; int main() { int a[100]= {0}; string str; while(…… 题解列表 2020年02月25日 0 点赞 0 评论 767 浏览 评分:6.0
Tom数-题解(Python代码) 摘要:###Python 一行解决 ``eval() 函数可以用于计算字符串表达式的值`` `例如:eval("2*2") ==4 True ` 上代码 ```python try: …… 题解列表 2020年02月25日 0 点赞 0 评论 1114 浏览 评分:6.0