DNA(不用数组也可以写) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int m,n,i,j,num; scanf("%d",&num); while(num--) { s…… 题解列表 2022年01月12日 0 点赞 0 评论 367 浏览 评分:0.0
2082: 蓝桥杯基础练习-十六进制转十进制 摘要:解题思路:注意事项:参考代码:n = input() def to_ten(x): dic = {'A':10,'B':11,'C':12,…… 题解列表 2022年01月13日 0 点赞 0 评论 455 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:素数是除了1和它本身外没有其他因数,所以我们可以写一个循环,把这一个数从2到它本身前面的数除一遍,每次除的时候如果整除就sum加一,最后判断一下如果sum等于0就是素数,不等于0就是素数注意…… 题解列表 2022年01月13日 0 点赞 0 评论 384 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy 摘要:解题思路: 技巧:根据输入N的大小初始化数组。注意事项:可以封装成swap函数,由于简单,罢了。参考代码:#include<iostream> using namespace std; int m…… 题解列表 2022年01月13日 0 点赞 0 评论 256 浏览 评分:0.0
C语言考试练习题_排列(C++暴力) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main() { int a[4],…… 题解列表 2022年01月13日 0 点赞 0 评论 372 浏览 评分:0.0
蓝桥杯算法提高VIP-一元一次方程 摘要:解题思路: 思路:解方程注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main()…… 题解列表 2022年01月13日 0 点赞 0 评论 325 浏览 评分:0.0
2085: 蓝桥杯算法提高VIP-P1003 摘要:解题思路:注意事项:参考代码:a = list(input().strip().split()) b = list(input().strip().split()) for i in a: …… 题解列表 2022年01月13日 0 点赞 0 评论 250 浏览 评分:0.0
结构体之成绩统计2 --指针 摘要:#include<stdio.h> #include<string.h> typedef struct { char sno[20]; char name[20]; int gra…… 题解列表 2022年01月13日 0 点赞 0 评论 251 浏览 评分:0.0
通过c语言的指针来访问和运算 摘要:#include<stdio.h> #include<string.h> typedef struct{ int year; int month; int day; }DAY,*SD…… 题解列表 2022年01月13日 0 点赞 0 评论 230 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:因数和数组要在循环内初始化参考代码:#include<stdio.h>int main() { int n,i,j,t; scanf("%d",&n); for(…… 题解列表 2022年01月13日 0 点赞 0 评论 401 浏览 评分:0.0