斯特林公式(Stirling's approximation) 求位数 代码 #include<iostream> #include<cmath> using namespace std; #define pi 3.1415926535 #define e 2.718281828459 int ma ...
分类:
其他好文 时间:
2020-06-13 10:43:04
阅读次数:
52
##问题描述 w*h的格子画了n条或垂直或水平宽度为1的直线,求出这些格子被划分成了多少个4连块(上、下、左、右连通)。 ##思路 挑战程序竞赛里面的题目,很容易想到的坐标离散化。因为直接搜索的话,我们可以想到有很多的空白行会造成我们资源的浪费。所以我们会直观的产生一种压缩的思想,去离散化出来一个等 ...
分类:
其他好文 时间:
2020-06-13 01:01:32
阅读次数:
80
package LeetCode_1411 /** * 1411. Number of Ways to Paint N × 3 Grid * https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/description/ * * ...
分类:
其他好文 时间:
2020-06-12 12:47:40
阅读次数:
58
所有知识体系文章,GitHub已收录,欢迎老板们前来Star! GitHub地址: https://github.com/Ziphtracks/JavaLearningmanual MySQL触发器 一、什么是触发器 触发器(trigger)是MySQL提供给程序员和数据分析员来保证数据完整性的一种 ...
分类:
数据库 时间:
2020-06-12 11:15:24
阅读次数:
58
今天在学习的时候,卡在DEKKER算法这里一下,脑袋一阵迷糊,竟然扣了几个小时,经过调试求证了一些事情,就是为什么要在循环里面更改各自的状态。 这里先引用一下百度百科的资料,说的通俗易懂,看完之后就会明白个大概。 1)P0的逻辑 do{ flag[0] = true;// 首先P0举手示意我要访问 ...
分类:
编程语言 时间:
2020-06-12 00:41:13
阅读次数:
92
题目链接 关于kmp : https://www.cnblogs.com/roccoshi/p/13096988.html 关于kmp, 想了很久, 我觉得不应该放在这里写, 另开一贴记录一下. #include<bits/stdc++.h> using namespace std; typedef ...
分类:
其他好文 时间:
2020-06-12 00:40:18
阅读次数:
51
Peer to Peer technology MP3 made copyrighted materially Space Shifting Vicarious Liability: Responsibility of any third party that had the "right, abi ...
分类:
其他好文 时间:
2020-06-11 23:16:21
阅读次数:
72
问题背景: oracle表空间不足报错是比较常见的故障,尤其是没有对剩余表空间做定期巡检的系统; 报错代码如下: oracle表空间不足错误代码:ORA-01653: unable to extend table ; 解决方式: 1、查看表空间使用率: 1 set linesize 220; 2 s ...
分类:
数据库 时间:
2020-06-11 22:08:14
阅读次数:
82
看题解之前,希望大家先自己列张表,会发现规律哦~ 用递归 #include<bits/stdc++.h>//万能头文件 using namespace std; int a[100005];//保存答案,当然你也可以直接输出(假如你能做到的话) int hhh(int N,int K) { if(N ...
分类:
其他好文 时间:
2020-06-11 20:03:28
阅读次数:
51
0、安装 python-pptx 库 pip install python-pptx 1、创建一张空幻灯片 # 加载库 import os from pptx import Presentation # 修改路径 work_path = r'E:\pyspace\tmp\pptx' os.chdir ...
分类:
编程语言 时间:
2020-06-11 19:40:46
阅读次数:
106