题意:如下是一个三角形ABC.$点D,E和F是三角形ABC的三等分点,$求$三角形PQR$的面积。 分析:三等分点的坐标可以推导出来,比如求D的坐标,D的坐标为$(\frac{2 * B.x + C.x}{3}, \frac{2 * B.y + C.y}{3})$,然后求出$三个交点P, R, Q$ ...
分类:
其他好文 时间:
2020-07-09 19:45:35
阅读次数:
186
实现过程 下面的命令将配置192.168.1.0/24整个网段的IP允许访问服务器的22端口 // 先移除默认开启的没有访问限制的ssh服务 # firewall-cmd --permanent --remove-service=ssh // 添加复杂规则,只允许指定IP段访问22端口 # fire ...
分类:
其他好文 时间:
2020-07-06 16:30:30
阅读次数:
304
gate 一年前做的. 求一个字符串由多少个循环节构成. KMP. 结论:若$n % (n-next[n]) \not= 0$则不是由循环节构成的. 否则,答案为$n/(n-next[n])$. code #include<cstdio> #include<iostream> #include<cm ...
分类:
其他好文 时间:
2020-07-01 09:51:14
阅读次数:
65
D 设阈值$L$,预处理$i\le L$的祖先最优背包 对于一次询问,$i>L$的部分可以状压 E 显然,题目可以直接转化为$S=0,T=2^L-1$,\(A_i\in[0,2^T)\) 令$f(U)\(为集合大小\)\in[1,K]\(,集合中所有数\)\And U$相同的个数 \(ans=\su ...
分类:
其他好文 时间:
2020-06-28 22:51:38
阅读次数:
124
平台: UVa Online Judge 題號: 1584 - Circular Sequence 題目連結: https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=448&page=show_probl ...
分类:
其他好文 时间:
2020-06-27 22:48:22
阅读次数:
173
不墨迹 #include <iostream> #include <algorithm> using namespace std; const int maxn = 1e6; int a[maxn], b[maxn]; int main() { #ifndef ONLINE_JUDGE freope ...
分类:
其他好文 时间:
2020-06-26 18:16:06
阅读次数:
64
CSDN同步 前记 上次 \(A\) 卷 $155$,\(B\) 卷 $360$ ;一个退役,一个进队。 所以说很不爽,来把 \(A\) 卷的题再看一遍。 冰火战士 上次只看了 $10$ 分的暴力,认真了才发现答案是 $2 \times \min { ice,fire }$,随便弄个数据结构二分维护 ...
分类:
其他好文 时间:
2020-06-26 14:22:48
阅读次数:
87
VMware Workstation Pro 15官方版下载:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-15.5.0-14665864.exe VMware Workstation Pro 15 激 ...
分类:
系统相关 时间:
2020-06-20 22:28:37
阅读次数:
455
题目: Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. He ...
分类:
其他好文 时间:
2020-06-18 12:53:23
阅读次数:
73
一、火焰和烟的效果图 二、火焰的制作 1、创建Particle System(粒子系统)(GameObject或鼠标右键->Effects->Particle System)然后将名字修改一下—> fire在Hierarchy面板中选中fire不同运行程序就会看到如下的效果 2、fire的参数如下有 ...
分类:
编程语言 时间:
2020-06-09 18:46:19
阅读次数:
157