蓝桥杯2021年第十二届国赛真题-二进制问题 #C++#dfs 摘要:```c++ #include using namespace std; typedef long long ll; typedef pair PII; const int N = 1e…… 题解列表 2023年06月06日 0 点赞 0 评论 426 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 int …… 题解列表 2023年06月06日 0 点赞 0 评论 257 浏览 评分:0.0
奇数单增序列 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc = n…… 题解列表 2023年06月06日 0 点赞 0 评论 328 浏览 评分:0.0
谁考了第K名 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc =…… 题解列表 2023年06月06日 0 点赞 0 评论 411 浏览 评分:0.0
枚举加分类 摘要:解题思路:结果只可能是4、6、8中的一个值。def func(x): sign=8 for a in (0,1): for b in (2,3): fo…… 题解列表 2023年06月06日 0 点赞 0 评论 665 浏览 评分:0.0
用C语言for循环写蛇形矩阵解题(不用数组) 摘要:解题思路:(1)观察蛇形矩阵存在两个规律:①行和列都存在一个递增关系;②每行首数据可以用一个递增值加上一个值得到。 (2)可以先把每行首元素输出,在处理首元素后面的数据,第一…… 题解列表 2023年06月06日 0 点赞 0 评论 333 浏览 评分:9.9
普通的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];…… 题解列表 2023年06月06日 0 点赞 0 评论 690 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>…… 题解列表 2023年06月06日 0 点赞 0 评论 234 浏览 评分:0.0
C语言考试练习题_一元二次方程(C语言) 摘要://解一元二次方程ax^2+bx+c=0的解。 #include<stdio.h> #include<math.h> int main(){ double a,b,c; s…… 题解列表 2023年06月05日 0 点赞 0 评论 429 浏览 评分:9.9
A+B for Input-Output Practice (VI) 摘要:#include<stdio.h> int main(){ int a; int b; int sum = 0; while(scanf("%d",&a)!=EOF){ …… 题解列表 2023年06月05日 0 点赞 0 评论 321 浏览 评分:10.0