自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 多线程售票

2022-11-29 19:35:09 208 1

原创 通用栈范式

2022-11-29 19:34:07 84

原创 Swap范式

2022-11-29 19:33:03 96

原创 Search范式

2022-11-29 19:32:19 85

原创 ALGO-13 拦截导弹

#include <iostream>#include <algorithm>using namespace std;const int N = 100010;int a[N], d1[N], d2[N], n=0,t;int main() { while(cin>>t) a[++n]=t; int len1 = 1, len2 = 1; //初始长度为1 d1[1] = a[1]; //用于求不上升序列长度 d2[1] = a[1]; //.

2022-03-07 19:25:15 125

原创 ALGO-13 拦截导弹

#include <iostream>#include <algorithm>using namespace std;const int N = 100010;int a[N], d1[N], d2[N], n=0,t;int main() { while(cin>>t) a[++n]=t; int len1 = 1, len2 = 1; //初始长度为1 d1[1] = a[1]; //用于求不上升序列长度 d2[1] = a[1]; //.

2022-03-07 19:23:59 52

原创 ALGO-12 幂方分解

import java.util.*;public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); Main m = new Main(); int n = in.nextInt(); m.f(n); } public void f(int n){ if(n==0) r.

2022-03-07 19:23:27 323

原创 ALGO-11 瓷砖铺放

import java.util.*;public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); final int N=100010; int[] dp=new int[N]; dp[1]=1; dp[2]=2; .

2022-03-07 19:22:48 56

原创 ALGO-9 摆动序列

import java.util.*;public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); int k=in.nextInt(); long[][] dp=new long[100][100]; for(int i=2;i<=k;i++){ dp[i][2]=i*(i.

2022-03-07 19:21:16 199

原创 ALGO-10 集合运算

import java.util.*;public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); final int N=10010; int[] tot=new int[N]; int l=0; int a=in.nextInt(); int[] A=new int[a]...

2022-03-07 19:20:39 231

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除