泛忆怎潜
泛忆怎潜
全部文章
分类
归档
标签
去牛客网
登录
/
注册
泛忆怎潜的博客
全部文章
(共9篇)
题解 | 构建长方体类
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2025-05-14
0
6
题解 | 重载小于号
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2025-05-14
0
7
题解 | 矩阵转置
//矩阵的转置即n行m列,转为m行n列;矩阵由原来的行变为列; #include <stdio.h> int main() { int n,m; scanf("%d %d",&n,&m); int arr[n][m];//创...
2025-04-26
0
14
题解 | 序列重组矩阵
//不用创建多余数组就能完成 #include <stdio.h> int main() { int n,m; scanf("%d %d",&n,&m); int arr[n*m];//创建一个数组 for(int ...
2025-04-26
0
17
题解 | KiKi判断上三角矩阵
//希望能给你一些思路 #include <stdio.h> int main() { int n; scanf("%d",&n); int arr[n][n];//创建二维数组 for(int i=0;i<n;i++...
2025-04-26
0
19
题解 | 图像相似度
//详细思路希望能帮助你 #include <stdio.h> int main() { int n,m; scanf("%d %d",&n,&m); int arr1[n][m]; int arr2[n][m];/...
2025-04-24
0
20
题解 | 单组_补充前导零
#include <stdio.h> int main() { int n; scanf("%d",&n); printf("%09d",n); return 0; }
2025-03-23
0
25
题解 | 多组_一维数组_T组形式
#include <stdio.h> int main() { int t=0; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); lo...
2025-03-15
0
25
题解 | 多组_A+B_零尾模式
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case ...
2025-03-15
0
29