二级C语言-进制转换-题解(C语言代码) 摘要: #include int main() { int x; scanf("%d",&x); printf("%o\n",x); return 0; } 要注意一点,八进…… 题解列表 2020年02月21日 0 点赞 0 评论 531 浏览 评分:6.0
[编程入门]打印图案-题解(C语言代码) 摘要:简单粗暴 #include "stdio.h" int main() { printf(" *\n"); printf(" * *\n"); printf("*****…… 题解列表 2020年02月21日 0 点赞 0 评论 724 浏览 评分: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 评论 664 浏览 评分: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 评论 610 浏览 评分:6.0
[编程入门]成绩评定-题解(C++代码) 摘要:#include using namespace std; int main() { int num; cin >> num; if (num >= 90 && n…… 题解列表 2020年02月24日 0 点赞 1 评论 540 浏览 评分:6.0
[编程入门]数字的处理与判断-题解(C++代码) 摘要:#include #include using namespace std; int main() { int num; /** 计数器*/ int sum=0…… 题解列表 2020年02月24日 0 点赞 0 评论 623 浏览 评分:6.0
优质题解 基于动态规划思路的拿糖果解题方案 摘要:思路: 1.当M个糖果减去2q个变成M-2q个就转换了状态,这是典型的动态规划思想,dp[M]=max(q+dp[M-2q]) 2.考虑到N…… 题解列表 2020年02月24日 0 点赞 0 评论 1139 浏览 评分:6.0
[递归]母牛的故事-题解(C++代码) 摘要:#include using namespace std; int main() { int x; while(cin>>x&&x!=0) { int temp; in…… 题解列表 2020年02月25日 0 点赞 0 评论 804 浏览 评分:6.0
陶陶摘苹果-题解(C++代码) 摘要:#include using namespace std; int main() { int x[10];//苹果高度 int y;//长 int k=0;//能碰到的苹果…… 题解列表 2020年02月25日 0 点赞 0 评论 425 浏览 评分:6.0
数字整除-题解(C++代码) 摘要:#include #include using namespace std; int main() { int a[100]= {0}; string str; while(…… 题解列表 2020年02月25日 0 点赞 0 评论 610 浏览 评分:6.0