lulucy
lulucy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lulucy的博客
全部文章
(共25篇)
题解 | #岛屿数量#
class Solution { public: int m,n; int dx[4] = {0,0,1,-1}; int dy[4] = {1,-1,0,0}; bool vis[201][201] = { false }; int solve(vecto...
2024-10-28
0
57
题解 | #字符串中找出连续最长的数字串#
#include <iostream> #include <string> using namespace std; bool isNum(char ch) { return ('0' <= ch && ch <= '9'); } in...
2024-10-28
0
62
题解 | #字符串中找出连续最长的数字串#
#include <iostream> #include <string> using namespace std; bool isNum(char c) { return c <= '9' && c >= '0'; } int mai...
2024-10-28
0
69
题解 | #牛牛的书#
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <stdlib.h> typedef struct Book { char name[100]; int price; }Book; i...
2024-06-05
0
90
题解 | #有序序列合并#
#include <stdio.h> int main() { int n = 0; int m = 0; int arr1[1000] ={0}; int arr2[1000]= {0}; scanf("%d %d",&...
2024-03-23
0
115
题解 | #X形图案#
#include <stdio.h> int main() { int n = 0; while(scanf("%d",&n)!=EOF) { for(int i = 0;i<n;i++) { for (int j = 0...
2024-03-23
0
158
题解 | #逆序输出#
#include <stdio.h> void Reversarr1(int arr1[],int sz) { int temp; for(int i = 0;i < sz/2;i++) { temp = arr1[i]; ...
2024-03-22
0
155
题解 | #矩阵转置#
#include <stdio.h> int main() { int m = 0; int n = 0; scanf("%d %d",&m,&n); int arr1[m][n] ; for(int...
2024-03-13
0
165
题解 | #空心正方形图案#
#include <stdio.h> void print (int num) { int a = 0; int b = 0; for(a = 0;a < num;a++) { for (b = 0;b < num ;...
2024-03-13
0
139
题解 | #三角形判断#
#include <stdio.h> int main() { int a = 0, b = 0, c = 0 ; while(scanf("%d %d %d",&a,&b,&c) != EOF) { ...
2024-01-30
0
136
首页
上一页
1
2
3
下一页
末页