C语言训练-邮票组合问题*-题解(C语言代码) 摘要:解题思路:邮票总数在1-7之间,设为i;价值为3的邮票总数不超过i且不超过4,设为k;i-k则为价值5的邮票个数,此时一定满足不超过i,再判断其是否超过总数3即可。如果满足所有要求 则x加一。(有点不…… 题解列表 2020年09月14日 0 点赞 0 评论 933 浏览 评分:2.0
信息学奥赛一本通T1444-埃及分数-题解(C语言代码) 摘要:#### 解题思路: ##### 头部: ```c #include #include #define max(x, y) ((x) > (y) ? (x) : (y)) #defin…… 题解列表 2020年09月13日 0 点赞 1 评论 1193 浏览 评分:6.6
蓝桥杯算法提高VIP-P1003 -题解(Python代码) 摘要:解题思路:注意事项:参考代码:g=list(input().strip().split()) l=list(input().strip().split()) re=[] for i in l: …… 题解列表 2020年09月13日 0 点赞 0 评论 795 浏览 评分:9.9
[编程入门]密码破译-题解(C语言代码) 摘要:```c #include int main(){ char a,b,c,d,e; scanf("%c%c%c%c%c",&a,&b,&c,&d,&e); print…… 题解列表 2020年09月13日 0 点赞 0 评论 815 浏览 评分:8.0
[编程入门]温度转换-题解(C语言代码) 摘要:```c /*c=5*(f-32)/9 f=c*9/5+32*/ #include int main(){ double f,c; scanf("%lf",&f); …… 题解列表 2020年09月13日 0 点赞 3 评论 1033 浏览 评分:9.0
二级C语言-计算素数和-题解(C++代码) 摘要:```cpp #include using namespace std; bool flag = true; long long ans = 0; bool isprime(int n…… 题解列表 2020年09月13日 0 点赞 0 评论 734 浏览 评分:0.0
两数之和-题解(C++代码) 摘要:解题思路: 没想到更好的,就暴力吧注意事项: 插一句,给了数据量n,new一个数组再delete不好吗......纠结什么参考代码:#include<bits/stdc++…… 题解列表 2020年09月13日 0 点赞 0 评论 1039 浏览 评分:0.0
[编程入门]三个数最大值-题解(C++代码) 摘要:```cpp #include using namespace std; int max(int x, int y) { if (x>=y) return x; else r…… 题解列表 2020年09月13日 0 点赞 0 评论 728 浏览 评分:0.0
[编程入门]第一个HelloWorld程序!-题解(C++代码) 摘要:``` #include int main() { printf("**************************\n"); p…… 题解列表 2020年09月13日 0 点赞 0 评论 487 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(C++代码) 摘要:不多说了。。。 ```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cou…… 题解列表 2020年09月13日 0 点赞 0 评论 654 浏览 评分:4.7