新服务器 git clone php项目时报错 [root@10-10-5-60 php]# git clone http://xxx/xxx/php.git Cloning into 'php'... remote: Counting objects: 91687, done remote: Fi ...
分类:
其他好文 时间:
2020-12-16 11:42:57
阅读次数:
3
希望从该文章中获取BCP的认识以及叙述方式 sharpSAT – Counting Models with Advanced Component Caching and Implicit BCP Thurley M. (2006) sharpSAT – Counting Models with Ad ...
分类:
其他好文 时间:
2020-12-15 11:42:56
阅读次数:
1
题意 统计树中的每一层有多少叶子结点,要求逐层输出 思路 逐层输出,刚好层序遍历是逐层扩展,所以我就直接用BFS了 代码 #include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <v ...
分类:
其他好文 时间:
2020-10-06 20:54:35
阅读次数:
26
题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805430595731456 题意 找出1-n中1出现的个数 Sample Input: 12 Sample Output: 5 思路 参考从1到n整数中1出现的次数: ...
分类:
其他好文 时间:
2020-09-17 12:30:09
阅读次数:
17
http://acm.hdu.edu.cn/showproblem.php?pid=6880 根据长度为n的排列a,构造长度n-1的序列b 思路:DP 官方题解: 代码: #include<iostream> #include<cstdio> #include<cstring> #include<a ...
分类:
其他好文 时间:
2020-09-03 17:00:42
阅读次数:
38
垃圾收集算法的实现涉及大量的细节,且各个平台的虚拟机操作内存的方法各有差异,本文主要讲分代收集的理论和几种算法回收的思想。 从如何判断对象的消亡角度出发,垃圾收集算法可以划分为两类:“引用计数式垃圾收集”(Reference Counting GC)和“追踪式垃圾收集” (Tracing GC)两大 ...
分类:
编程语言 时间:
2020-07-26 01:09:29
阅读次数:
99
垃圾收集器与内存分配策略 概述 程序计数器,虚拟机栈,本地方法栈随线程创建而产生,随线程销毁而消失,内存的分配和回收具有确定性,一般不考虑回收问题. 对象存活性判断 引用计数算法(Reference Counting) 特点: 在对象中添加一个引用计数器. 当有一个引用时,计数器加一;当一个引用失效 ...
分类:
编程语言 时间:
2020-07-01 09:45:16
阅读次数:
54
一、技术总结 分三种情况: 当 二、参考代码 #include<iostream> using namespace std; int main(){ int n, a = 1, ans = 0; int left, now, right; cin >> n; while(n / a != 0){ l ...
分类:
其他好文 时间:
2020-06-29 23:08:00
阅读次数:
93
agc037_f Counting of Subarrays https://atcoder.jp/contests/agc037/tasks/agc037_f https://img.atcoder.jp/agc037/editorial.pdf Tutorial 我们称一个序列为合法序列当且仅当 ...
分类:
其他好文 时间:
2020-06-25 10:15:33
阅读次数:
68
Counting Sort 计数排序适用于数据量很大,但是数据类别很少的情况,可以做到线性时间。 举例来看:如果有100万个字符串,但只有cat, dog, person三种类型,采用基于比较的排序方式,可以做到$NlogN$,计数排序采用了一种完全不同的思想: 新建一个counts[3],记录每种 ...
分类:
其他好文 时间:
2020-06-24 10:31:57
阅读次数:
52