摘要: 严重的色情成瘾者。 色情成瘾,被定义为一种以强迫性使用色情制品为标志的大脑现象。 尽管导致极其严重的负面影响,却难以停止, 随着时间的推移更加恶化。 在此,我尝试用写博客的方式重新开始生活。 阅读全文
posted @ 2023-03-10 18:28 corsican 阅读(10) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> #include <utility> #include <unordered_map> using namespace std; unordered_map<int, int> originNumber; void setO 阅读全文
posted @ 2021-11-09 14:37 corsican 阅读(95) 评论(0) 推荐(0)
摘要: /*状态转移方程: OPT(i , j)= max(OPT(i , j − 1) , max( 1+OPT(i , t − 1)+OPT(t + 1, j − 1))), where the max is taken over t such that bt and bj are an allowab 阅读全文
posted @ 2021-11-06 23:55 corsican 阅读(750) 评论(0) 推荐(0)
摘要: 1、dp数组的含义 maxDP[i]中存储 以nums[i]为结尾元素的子数组的最大乘积minDP[i]中存储 以nums[i]为结尾元素的子数组的最小乘积 注意到:maxDP[i] >= minDP[i] for all i from 0 to nums.size()-1 2、根据maxDP[i] 阅读全文
posted @ 2021-10-30 22:02 corsican 阅读(42) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define VERTEX 5 5 #define INF 99999 6 #define NIL -1 7 8 void print_all_pairs_shortest_path(int pi[][V 阅读全文
posted @ 2021-10-28 21:11 corsican 阅读(76) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 enum bool {TRUE, FALSE}; void print_Q(int *Q) { int i; for (i = 1; i <= N; i++) printf("%d, ", Q[i]); printf("\n"); } v 阅读全文
posted @ 2021-10-26 14:57 corsican 阅读(43) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #define LEN 10 3 #define NEGINF -999999 4 struct r_d { 5 int r; //profit 6 int s; //distance 7 }; 8 9 int price[LEN+1] = {0, 1, 阅读全文
posted @ 2021-10-26 14:56 corsican 阅读(42) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define INFINITY 999999 #define LEN(A) ((sizeof (A)) / (sizeof A[0])) void print_array(int A[], int len) { int i; /* int len = LEN( 阅读全文
posted @ 2021-10-24 21:34 corsican 阅读(41) 评论(0) 推荐(0)
摘要: 1 int *find_next(char *p) 2 { 3 int k = -1; //right shift i-k 4 int i = 0; 5 int m = strlen(p); 6 int *next = (int *)malloc(sizeof (int) * m); ... 阅读全文
posted @ 2018-06-11 14:44 corsican 阅读(563) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示