输出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 评论 608 浏览 评分:9.9
[编程入门]实数的打印-题解(C语言代码) 摘要:解题思路:双重循环控制层数及次数注意事项:参考代码:#include<stdio.h>void main(){ int i,j; float x; scanf("%f",&x); …… 题解列表 2020年08月05日 0 点赞 0 评论 419 浏览 评分:0.0
逆序数-题解(C++代码) 离散化+树状数组 摘要:解题思路:离散化+树状数组典型应用参考代码:#include<bits/stdc++.h> using namespace std; const int N=1e2+3; struct node…… 题解列表 2020年08月05日 0 点赞 0 评论 462 浏览 评分:9.0
信息学奥赛一本通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 评论 1193 浏览 评分:9.9
蓝桥杯算法训练VIP-黑色星期五-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; #define rn(y) (((y%4==0)&&(y%100!=0))|…… 题解列表 2020年08月05日 0 点赞 0 评论 732 浏览 评分: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 评论 724 浏览 评分:8.4
蓝桥杯算法提高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 评论 948 浏览 评分:9.9
[编程入门]三个数找最大值-题解(C语言代码) 摘要:解题思路:代码并不是最简,甚至过于繁杂,但应该容易理解。如下,第一个数与第二个数比较,较大者与第三个数比较,输出第二次比较后的最大值。注意事项:注意符号的正确性!参考代码:#include <stdi…… 题解列表 2020年08月05日 0 点赞 0 评论 705 浏览 评分:0.0
二级C语言-温度转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int j,i; for(int i=-100;i<=150;i+=5) {…… 题解列表 2020年08月05日 0 点赞 0 评论 532 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(C语言代码) 摘要:解题思路:由scanf函数输入数字,a+b可在输出函数中进行。注意事项:注意符号的正确使用。参考代码:#include <stdio.h>int main(){ int a,b; scan…… 题解列表 2020年08月05日 0 点赞 0 评论 537 浏览 评分:0.0