上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
该文被密码保护。 阅读全文
posted @ 2020-07-01 11:17 Hazelxcf 阅读(0) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2689 #include<bits/stdc++.h> #define low(x) (x&(-x)) using namespace std; const int maxn=1e5+5; typedef long 阅读全文
posted @ 2020-05-28 11:47 Hazelxcf 阅读(161) 评论(0) 推荐(1)
摘要: https://ac.nowcoder.com/acm/problem/20861 #include<bits/stdc++.h> #define low(x) (x&(-x)) using namespace std; const int N=1e5+5; typedef long long ll 阅读全文
posted @ 2020-05-28 11:27 Hazelxcf 阅读(135) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/problem/20032 #include <bits/stdc++.h> using namespace std; const int maxn = 5010; int N, R; int g[maxn][maxn]; int ans; i 阅读全文
posted @ 2020-05-28 09:49 Hazelxcf 阅读(151) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/description/116/ #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <vector> using name 阅读全文
posted @ 2020-05-28 09:15 Hazelxcf 阅读(185) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/problem/53681 intial : a 从小到大,b 从大到小 finally b - a分为连部分 前部分 : 正的 a 从小到大, 后部分 : 负的 b 从大到小 ??? 最后收益是正的,也就是说m是一直增加的,自然要从消耗小的开 阅读全文
posted @ 2020-05-25 11:36 Hazelxcf 阅读(185) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/problem/24636 刚开始不是很明白为什么前缀和差分可以做 后来想了想,似乎是这样 区间驱赶 的时候,前缀和不为0 剩余的区间前缀和为0 #include<bits/stdc++.h> #define int long long usi 阅读全文
posted @ 2020-05-24 21:57 Hazelxcf 阅读(230) 评论(0) 推荐(0)
摘要: 给定两个长度分别为N和M的字符串A和B,求既是A的子序列又是B的子序列的字符串长度最长是多少。 输入格式 第一行包含两个整数N和M。 第二行包含一个长度为N的字符串,表示字符串A。 第三行包含一个长度为M的字符串,表示字符串B。 字符串均由小写字母构成。 输出格式 输出一个整数,表示最大长度。 数据 阅读全文
posted @ 2020-05-15 10:35 Hazelxcf 阅读(115) 评论(0) 推荐(0)
摘要: 给定一个长度为N的数列,求数值严格单调递增的子序列的长度最长是多少。 输入格式 第一行包含整数N。 第二行包含N个整数,表示完整序列。 输出格式 输出一个整数,表示最大长度。 数据范围 1≤N≤100000−109≤数列中的数≤109 输入样例: 7 3 1 2 1 8 5 6 输出样例: 4 严格 阅读全文
posted @ 2020-05-15 10:25 Hazelxcf 阅读(118) 评论(0) 推荐(0)
摘要: 给定一个浮点数n,求它的三次方根。 输入格式 共一行,包含一个浮点数n。 输出格式 共一行,包含一个浮点数,表示问题的解。 注意,结果保留6位小数。 数据范围 −10000≤n≤10000 输入样例: 1000.00 输出样例: 10.000000 #include <bits/stdc++.h> 阅读全文
posted @ 2020-05-11 11:47 Hazelxcf 阅读(369) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页