#include<math.h> #include<stdio.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c:"); while(scanf("%f%f%f",&a,&b,&c) != EOF ...
分类:
其他好文 时间:
2020-11-20 11:32:25
阅读次数:
7
问$n$的排列,满足不超过$k+1$段极长的连续段组成,这里的连续段定义为相邻两个数的差值绝对值不超过$1$。 \(n\le 2*10^5\) 设恰好$k$段组成的方案数为$f_k$,至多$k$段组成的方案数为$g_k$。 显然有$g_k=x^kk!$。化下式子得$g_=k!\sum_k2i(-1) ...
分类:
其他好文 时间:
2020-11-20 11:25:19
阅读次数:
5
1 #include <iostream> 2 #include <cstdio> 3 #include <memory.h> 4 using namespace std; 5 const int INF=0x3f3f3f3f,city=4; 6 int main(){ 7 int a[city][ ...
分类:
其他好文 时间:
2020-11-19 12:53:22
阅读次数:
10
#1、下载安装文件,并使用阿里镜像源 curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh --mirror Aliyun #2、配置加速器 sudo mkdir -p /etc/docker sudo tee /et ...
分类:
其他好文 时间:
2020-11-19 12:44:52
阅读次数:
8
Redis 是一个非关系型高性能的key-value数据库。在部分场合可以对关系数据库起到很好的补充作用。它提供了Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang等客户端,使用很方便。 redis提供五种数据类型:string ...
@GetMapping("/selectIp") public HashMap<String, String> selectIp() { String ipHostAddress = ""; try { Enumeration<NetworkInterface> allNetInterfaces = ...
分类:
编程语言 时间:
2020-11-16 13:09:14
阅读次数:
9
一键部署apache#!/bin/bashread-p"请输入httpd源码包所在绝对路径:"acd$aecho"----开始安装----"tarxjvfhttpd-2.4.29.tar.bz2tarxzvfapr-1.6.2.tar.gztarxzvfapr-util-1.6.0.tar.gzmvapr-1.6.2httpd-2.4.29/srclib/aprmvapr-util-1.6.0ht
分类:
Web程序 时间:
2020-11-16 13:05:45
阅读次数:
10
Are you a Linux fan? Do you hate to do things the easy way? Are you a pro who loves to put his computer’s life on the line to experiment and customize ...
分类:
其他好文 时间:
2020-11-12 13:37:01
阅读次数:
8
1、简介 今天给大家推荐个好的轮子,System.Linq.Dynamic.Core。我们都知道 数据库应用程序经常依赖于“动态SQL”,即在运行时通过程序逻辑构造的查询。拼接SQL容易造成SQL注入,普通的LINQ可以用表达式树来完成,但也比较麻烦。推荐System.Linq.Dynamic.Co ...
分类:
其他好文 时间:
2020-11-08 17:07:02
阅读次数:
18
while (~scanf("%d%d",&n,&m))等效于 while (scanf("%d%d",&n,&m)!=EOF) ~是按位取反 scanf的返回值是输入值的个数 如果没有输入值就是返回-1 -1按位取反结果是0 while(~scanf("%d", &n))就是当没有输入的时候退出循 ...
分类:
其他好文 时间:
2020-11-07 16:53:21
阅读次数:
33