蓝桥杯算法提高VIP-身份证号码升级-题解(C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int x[17] = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, …… 题解列表 2020年08月05日 0 点赞 0 评论 745 浏览 评分:9.9
信息学奥赛一本通T1268-完全背包问题-题解(C语言代码) 摘要:```c #include//可参考我的上篇01背包问题,更加详细 int max(int x,int y) { if(x>y)return x; else return y; }…… 题解列表 2020年08月05日 0 点赞 0 评论 576 浏览 评分:8.4
蓝桥杯算法训练VIP-黑色星期五-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; #define rn(y) (((y%4==0)&&(y%100!=0))|…… 题解列表 2020年08月05日 0 点赞 0 评论 600 浏览 评分:9.9
信息学奥赛一本通T1267-01背包问题-题解(C语言代码) 摘要:```c #include int max(int x,int y) { if(x>y)return x; else return y; } int main()//注意一点,该…… 题解列表 2020年08月05日 0 点赞 0 评论 1033 浏览 评分:9.9
逆序数-题解(C++代码) 离散化+树状数组 摘要:解题思路:离散化+树状数组典型应用参考代码:#include<bits/stdc++.h> using namespace std; const int N=1e2+3; struct node…… 题解列表 2020年08月05日 0 点赞 0 评论 349 浏览 评分:9.0
[编程入门]实数的打印-题解(C语言代码) 摘要:解题思路:双重循环控制层数及次数注意事项:参考代码:#include<stdio.h>void main(){ int i,j; float x; scanf("%f",&x); …… 题解列表 2020年08月05日 0 点赞 0 评论 305 浏览 评分:0.0
输出M到N的数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int m,n,i; scanf("%d%d",&m,&n); if(m<n) { for(i=m+1…… 题解列表 2020年08月05日 0 点赞 0 评论 502 浏览 评分:9.9
求阶梯水费-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x,y; scanf("%d",&x); if(x<15)y=2*x; else y=30+(x…… 题解列表 2020年08月05日 0 点赞 0 评论 770 浏览 评分:2.0
[编程入门]宏定义之闰年判断-题解(C语言代码) 摘要:解题思路:闰年的定义是可以被4整除同时却不能被100整除的年份,或者是可以被400整除的年份注意事项:题目给定的函数名默认是LEAP_YEAR(y)参考代码:#include<stdio.h>#def…… 题解列表 2020年08月05日 0 点赞 0 评论 1214 浏览 评分:8.7
代码有可能有问题,测试数据不够,不知道有没有人能找到是不是有错误。(c语言) 摘要:# 代码不一定对,我只想知道有没有问题。思路就是一个个对比。 ##### ## 我只想知道有没有错误,不关心能不能优化效率。 #include #include …… 题解列表 2020年08月05日 0 点赞 0 评论 285 浏览 评分:0.0