给我就亿下
给我就亿下
全部文章
分类
归档
标签
去牛客网
登录
/
注册
给我就亿下的博客
全部文章
(共47篇)
题解 | #排名#
#include <iostream> #include <algorithm> #include <string> using namespace std; const int MAXN = 10 + 10; const int MAXM = 1000 + ...
2023-03-14
0
394
题解 | #拦截导弹#
#include <iostream> using namespace std; const int MAXN = 25 + 10; int dp[MAXN]; int height[MAXN]; int main(){ int n; cin >> n; for ...
2023-03-14
0
305
题解 | #采药#
#include <iostream> #include <cstring> using namespace std; const int MAXN = 1000 + 10; const int MAXM = 100 + 10; int dp[MAXN]; int we...
2023-03-14
0
391
题解 | #成绩排序#
#include <iostream> #include <algorithm> using namespace std; struct Student{ string name; int age; int score; }; const int MAXN = 10...
2023-03-14
0
294
题解 | #统计单词#
#include <iostream> using namespace std; int main () { string str; while (getline(cin, str)){ int res = 0; for (int i = 0; i < str.si...
2023-03-13
0
234
题解 | #二叉树#
#include <stdio.h> int ComFather (int x, int y){ if (x == 1 || y == 1){ return 1; } while (x != y){ if (x > y){ x = x / 2; }else...
2023-03-13
0
226
题解 | #最大序列和#
#include <iostream> #define INF 1000000 using namespace std; const int MAXN = 1e6; long long dp[MAXN]; long long arr[MAXN]; long long MaxSequ...
2023-03-12
0
309
题解 | #统计字符#
#include <iostream> using namespace std; int main () { string str1, str2; while (getline(cin, str1)){ if (str1 == "#"){ break; } g...
2023-03-12
0
254
题解 | #数字求和#
#include <iostream> using namespace std; const int MAXN = 100 + 10; int arr[MAXN]; int main () { int a; cin >> a; int sum = 0; for ...
2023-03-10
0
237
题解 | #最大上升子序列和#
#include <iostream> using namespace std; const int MAXN = 1000 + 10; int arr[MAXN]; int sum[MAXN]; int main () { int n; cin >> n; f...
2023-03-10
0
246
首页
上一页
1
2
3
4
5
下一页
末页