鸡兔同笼-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int s; scanf("%d",&s); for(int i=0;i<=40;i++) { for(in…… 题解列表 2020年08月25日 0 点赞 0 评论 552 浏览 评分:0.0
考试评级-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); if(n>=80&&n<=100) printf("A\n");…… 题解列表 2020年08月25日 0 点赞 0 评论 405 浏览 评分:0.0
求总时间-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; double time,sum=0; scanf("%d",&n); time=30; for(…… 题解列表 2020年08月25日 0 点赞 0 评论 513 浏览 评分:0.0
奇数个数-题解(C语言代码) 摘要:解题思路:注意事项:除以二的数是偶数;参考代码:#include <stdio.h>#include <string.h>int main(){ char a[50]; scanf("%s",&a);…… 题解列表 2020年08月25日 0 点赞 0 评论 778 浏览 评分:5.0
数字整除-题解(C++代码) 摘要:解题思路:注意要考虑大数的储存,我用的是,字符转数字的方法。而且解题考虑最终结果就好,过程尽量简单。注意事项:参考代码:#include <iostream>#include <cstring>usi…… 题解列表 2020年08月25日 0 点赞 0 评论 969 浏览 评分:5.6
回文判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[100]; scanf("%s",&a); int l=s…… 题解列表 2020年08月25日 0 点赞 0 评论 482 浏览 评分:0.0
边长判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c);…… 题解列表 2020年08月25日 0 点赞 0 评论 490 浏览 评分:0.0
二级C语言-进制转换-题解(Python代码) 摘要:解题思路:python中数值型变量好像只能是十进制形式表示,其他类型变量只能以字符串形式存在,可以通过format函数将int类型变量转换成其他进制字符串注意事项:只知道format函数,然后就自以为…… 题解列表 2020年08月25日 0 点赞 3 评论 891 浏览 评分:9.2
蓝桥杯算法提高VIP-和最大子序列-题解(C++代码)dp+最小子问题分解 摘要:`把问题拆解为小的子问题` ` 比如只有两个数 3,-2 只需要考虑3加上-2和不加两种情况` `如果有三个数3,-2,3只需要考虑3,-2的最大子序列加上3和不加两种情况` `建立一个与序列等…… 题解列表 2020年08月25日 0 点赞 2 评论 359 浏览 评分:6.0
统计成绩-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a[10],count=0; double sum=0; for…… 题解列表 2020年08月25日 0 点赞 0 评论 498 浏览 评分:0.0