题解 2876: 矩阵交换行 摘要: #include using namespace std; int n,m; int a[6][6]; int main(){ for(in…… 题解列表 2023年12月27日 0 点赞 0 评论 376 浏览 评分:0.0
题解 2851: 合法C标识符 摘要: #include using namespace std; int n; char a[200],m[200]; int main() { …… 题解列表 2023年12月27日 0 点赞 0 评论 383 浏览 评分:0.0
最大匹配的数学证明 摘要:当数组a是递增排序,而数组b是递减排序时;或者数组a是递减排序,而数组b是递增排序时,结果最大。首先,这两种情况呈现一个对称关系,不妨证明前者——当数组a是递增排序,而数组b是递减排序时,结果最大。证…… 题解列表 2023年12月27日 1 点赞 0 评论 604 浏览 评分:0.0
运用移位运算将更相减损术与移位结合(stein算法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int gcd(int a,int b){ if(a<b){ a=a^b; b=a^b; …… 题解列表 2023年12月28日 0 点赞 0 评论 279 浏览 评分:0.0
图像相似度 摘要:解题思路:注意事项:参考代码:h,l=map(int,input().split())ls1=[]ls2=[]for i in range(h): ls1.append(list(map(int…… 题解列表 2023年12月28日 0 点赞 0 评论 330 浏览 评分:0.0
c代码记录之结构体成绩统计 摘要:第一次练习结构体,略显生涩 #include struct student{ char xuehao[10],name[10]; int a,b…… 题解列表 2023年12月29日 0 点赞 0 评论 402 浏览 评分:0.0
c代码记录之结构体时间设计 摘要: #include struct Time{ int year,month,day; }_time; int main(){ s…… 题解列表 2023年12月29日 0 点赞 0 评论 352 浏览 评分:0.0
c代码记录之结构体成绩记录--函数传参 摘要: #include struct Student{ char xuehao[30],name[30]; int a,b,c; }; …… 题解列表 2023年12月29日 0 点赞 0 评论 337 浏览 评分:0.0
约瑟夫环求解 摘要:解题思路:注意事项:参考代码:n = int(input())a = 0b = 0j = -1l = []for i in range(0, n): a += 1 l.append(a)w…… 题解列表 2023年12月29日 0 点赞 0 评论 417 浏览 评分:0.0
2913: 整数去重 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { …… 题解列表 2023年12月29日 0 点赞 0 评论 413 浏览 评分:0.0