```C++ include const int MAXN = 100010; int sum[MAXN]; int n, S, nearS = 100000010; int upper_bound(int L, int R, int x) { int left = L, right = R, mi ...
分类:
其他好文 时间:
2019-02-24 10:39:32
阅读次数:
145
```C++ include include int main(){ char str1[101], str2[101]; bool HashTable[128] = {false}; scanf("%s", str1); scanf("%s", str2); int len1 = strlen(s ...
分类:
其他好文 时间:
2019-02-24 10:32:00
阅读次数:
154
$\color{ 0066ff}{ 题目描述 }$ 现在给出了一个简单无向加权图。你不满足于求出这个图的最小生成树,而希望知道这个图中有多少个不同的最小生成树。(如果两颗最小生成树中至少有一条边不同,则这两个最小生成树就是不同的)。由于不同的最小生成树可能很多,所以你只需要输出方案数对31011的模 ...
分类:
Web程序 时间:
2019-02-24 10:31:11
阅读次数:
172
千万亿 百万亿 十万亿 万亿 千亿 百亿 十亿 亿 千万 百万 十万 万 千 百 十 个 234 134 034 34 24 14 04 4 23 13 03 3 2 1 0 8132 3456 8008 0898 ba Qian yi Bai san Shi er Wan san Qian si ...
分类:
其他好文 时间:
2019-02-24 10:29:03
阅读次数:
270
name,ident,is_active参数的演示importthreadingimporttimedefworker():count=0whileTrue:ifcount>5:breaktime.sleep(2)count+=1print(threading.current_thread().name)t=threading.Thread(target=worker,name="worke
分类:
其他好文 时间:
2019-02-24 01:05:19
阅读次数:
200
1、STM32有5个时钟源:HSI、HSE、LSI、LSE、PLL。--》HSI是高速内部时钟,RC振荡器,频率为16MHz,精度不高。可以直接作为系统时钟或者用作PLL时钟输入。--》HSE是告诉外部时钟,可接石英/陶瓷谐振器,或者接外部时钟源,频率范围为4MHz~26MHz。--》LSI是低速内... ...
分类:
其他好文 时间:
2019-02-24 00:47:34
阅读次数:
270
3.统计数字(Digit Count) 计算数字 k 在 0 到 n 中的出现的次数,k 可能是 0~9 的一个值。 首先是,惯用思维,2个循环解决,这样做的时间复杂度为O(n*2) 提交成功后,看到讨论区有时间复杂度为O(log(n))的解法,搞懂思路后,终于自己实现了 本题求k出现的次数,其实可 ...
分类:
编程语言 时间:
2019-02-24 00:23:32
阅读次数:
249
create table abc(A int,B int) Select A,count(B) as total from ABC group by A Select A,count(B) as total1 from ABC where B > 30 group by A Select A,cou ...
分类:
数据库 时间:
2019-02-23 23:05:26
阅读次数:
836
最简单版的ajax get版本 post版本 去加油吧少年! ...
分类:
Web程序 时间:
2019-02-23 23:01:00
阅读次数:
199