帅气哥哥
帅气哥哥
全部文章
分类
归档
标签
去牛客网
登录
/
注册
帅气哥哥的博客
全部文章
(共158篇)
题解 | #有序序列判断#
#include <stdio.h> #include <stdbool.h> bool Sort(int *arr, int n) { for (int i = 0; i < n-1; i++)//判断是否是从小到大 { if (ar...
2023-05-14
0
245
题解 | #有序序列合并#
#include <stdio.h> int main() { int n = 0; int m = 0; scanf("%d%d", &n, &m); int L1[n]; int L2[m]; int finly[n+m]; ...
2023-05-14
0
164
题解 | #小红的树#
#include <iostream> using namespace std; struct ChildNode { int child; struct ChildNode *next; }; struct ParentNode { int i; ...
2023-05-13
0
271
题解 | #字母收集#
#include <iostream> using namespace std; int main() { int n = 0; int m = 0; cin >> n >> m; int arr[n][m]; char ...
2023-05-12
0
269
题解 | #【模板】差分#
#include <iostream> using namespace std; int main() { int n = 0; int m = 0; cin >> n >> m; long long arr[n]; lo...
2023-05-12
0
247
题解 | #买卖股票的最好时机(一)#
#include <iostream> using namespace std; int main() { int n = 0; cin >> n; int prices[n]; for (int i = 0; i < n && ci...
2023-05-10
0
290
题解 | #跳跃游戏(一)#
#include <iostream> using namespace std; int main() { int n = 0; cin >> n; int nums[n]; int a = n - 1; int i = 0; ...
2023-05-09
0
251
题解 | #不相邻取数#
#include <iostream> using namespace std; long long max(long long a, long long b) { return a > b ? a : b; } int main() { int n = 0;...
2023-05-08
0
255
题解 | #连续子数组最大和#
#include <iostream> using namespace std; int main() { int n = 0; int a[1000000] = {0}; int tmp = 0; int max = 0; //接收数据 ...
2023-05-06
0
224
题解 | #最小花费爬楼梯#
#include <iostream> using namespace std; int main() { int n = 0; int cost[100010] = {0}; int min1 = 0; int min2 = 0; int mi...
2023-05-05
0
264
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页