python常规思路解题-DNA 摘要:解题思路:注意事项:参考代码:def function(a,b): alist = [[chr(32) for i in range(a)] for j in range(a)] …… 题解列表 2022年01月13日 0 点赞 0 评论 664 浏览 评分:9.9
连续自然数和 (Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { Scan…… 题解列表 2022年01月13日 0 点赞 0 评论 651 浏览 评分:6.0
没找规律,暴力求解 摘要:#include<stdio.h> #include<math.h> #include<string.h> int main(){ long m; scanf("%ld",&m); …… 题解列表 2022年01月13日 0 点赞 0 评论 494 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:因数和数组要在循环内初始化参考代码:#include<stdio.h>int main() { int n,i,j,t; scanf("%d",&n); for(…… 题解列表 2022年01月13日 0 点赞 0 评论 578 浏览 评分:0.0
通过c语言的指针来访问和运算 摘要:#include<stdio.h> #include<string.h> typedef struct{ int year; int month; int day; }DAY,*SD…… 题解列表 2022年01月13日 0 点赞 0 评论 451 浏览 评分:0.0
平方和与立方和(其实没有那么难) 摘要:解题思路:18:05:49注意事项:参考代码:#include<stdio.h>int main(){ int m,n; int result1,result2;//result1表示奇数的立方和,r…… 题解列表 2022年01月13日 0 点赞 0 评论 663 浏览 评分:9.9
结构体之成绩统计2 --指针 摘要:#include<stdio.h> #include<string.h> typedef struct { char sno[20]; char name[20]; int gra…… 题解列表 2022年01月13日 0 点赞 0 评论 470 浏览 评分:0.0
并查集-合根植物(c++) 合根植物最多为m*n,每次合根使数量减1;并查集将不同编号同一植物归为统一的根```cpp#includeusingnamespacestd;constintN=1000*1000+5;ints[N];intans=0;intfind(intx){if(x!=s[x]){s[x]=find(s[x]) 题解列表 2022年01月13日 0 点赞 0 评论 747 浏览 评分:9.9
python常规思路解题-蛇形矩阵 解题思路:首先找出规律,一共用到两个公式,在套用公式前初始化alist[0][0]=1①alist[i][0]=alist[i-1][1]-1②alist[i][j]=alist[i][j-1]+j+i+1之后,控制输出格式,输出上三角矩阵即可。 题解列表 2022年01月13日 0 点赞 0 评论 1591 浏览 评分:9.9
2085: 蓝桥杯算法提高VIP-P1003 摘要:解题思路:注意事项:参考代码:a = list(input().strip().split()) b = list(input().strip().split()) for i in a: …… 题解列表 2022年01月13日 0 点赞 0 评论 485 浏览 评分:0.0