如初见_
如初见_
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
如初见_的博客
全部文章
(共7篇)
题解 | #丢手绢#
#include <iostream> #include <algorithm> using namespace std; long arr[100005],n,sum=0,ans=0,l=0,r=0,temp=0; int main (){ ci...
C++
2025-03-04
1
25
拼数
#include <iostream> #include <algorithm> using namespace std; bool cmp(string a,string b) { return a+b>b+a;//进行拼接,比较大小 } int mai...
贪心
2025-02-28
0
20
题解 | #字符串#
#include <iostream> #include<algorithm> #include<string> using namespace std; int main() { ios::sync_with_stdio(false)...
2025-02-23
1
24
题解 | #[HNOI2003]激光炸弹#
#include <iostream> #include<algorithm> using namespace std; int arr[5005][5005]; int main() { ios::sync_with_stdio(false); ...
2025-02-13
1
35
题解 | #[CQOI2009]中位数图#
#include <iostream> #include<algorithm> using namespace std; long a[100003]; long delta[200006]; long ans=1; long sum=0;long c=0; in...
2025-02-13
0
27
题解 | #值周#
#include <iostream> #include<algorithm> using namespace std; int l,m; struct ty { int pos,num; }a[2000005];跟校门外的树差不多,离散化用的数组...
2025-02-12
0
30
题解 | #校门外的树#
#include <iostream> #include<algorithm> using namespace std; int l, m; struct ty { int pos=0, num=0; }a[205]; bool comp(ty a...
2025-02-11
0
31