python来解一下 摘要:解题思路:while True: try: s=list(map(int,input().split())) n,m,items=s[0],s[1],s[2:] a=[i for…… 题解列表 2023年12月13日 0 点赞 0 评论 295 浏览 评分:6.0
编写题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define n 3 int main() { int a[n][n],i,j,k; for(i=0; i<n; i++…… 题解列表 2023年12月15日 0 点赞 0 评论 190 浏览 评分:6.0
编写题解 1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(int i) { int a[10],j,k; for(i=0;i<10;i++)scan…… 题解列表 2023年12月15日 0 点赞 0 评论 294 浏览 评分:6.0
题解 2944: 图像旋转翻转变换 摘要:```c #include #include #define MAX_SIZE 100 void rotate90Clockwise(int mat[MAX_SIZE][MAX_S…… 题解列表 2023年12月17日 0 点赞 0 评论 407 浏览 评分:6.0
题解 1050: [编程入门]结构体之成绩记录(超超超级简短) 摘要:```c #include #include struct student { char shuju[20]; char name[20]; int chines…… 题解列表 2023年12月17日 0 点赞 0 评论 277 浏览 评分:6.0
超级好用的题解,大家快来看啊!!!求个五星好评 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月17日 0 点赞 3 评论 395 浏览 评分:6.0
压力给到print 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c; scanf("%lf%lf%lf", &…… 题解列表 2023年12月18日 0 点赞 0 评论 339 浏览 评分:6.0
判断首尾,如果相等就不断递归,直至结束或者判断出来首尾大小 摘要:解题思路:因为题目中是连续子序列,所以两个循环确定头尾,如果头大于尾,则肯定交换后小于之前数。如:54321交换后为12345。但是我们会碰到头尾相等的。如14321,那就比较第二个和倒数第二个这里就…… 题解列表 2023年12月19日 0 点赞 0 评论 442 浏览 评分:6.0
离线 + 哈希 摘要:解题思路:该题没有涉及修改操作,多次查询,离线一定 有机会优化出比在线更好的算法我们对查询的边界【l,r】中的r从左到右解决问题发现l肯定是越小越有机会yes,我们现在要解决的就是这个边界值l_bou…… 题解列表 2023年12月21日 0 点赞 0 评论 424 浏览 评分:6.0
2914: 铺地毯 摘要:``` #include using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int …… 题解列表 2023年12月24日 0 点赞 0 评论 250 浏览 评分:6.0