码迷,mamicode.com
首页 >  
搜索关键字:perl eof    ( 10804个结果
实验3
#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
6861. 【2020.11.14提高组模拟】终末作战
问$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
动态规划-tsp
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
树莓派-安装docker
#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
C#操作redis
Redis 是一个非关系型高性能的key-value数据库。在部分场合可以对关系数据库起到很好的补充作用。它提供了Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang等客户端,使用很方便。 redis提供五种数据类型:string ...
分类:Windows程序   时间:2020-11-17 12:57:10    阅读次数:26
java后端获取本机的ip地址而非localhost和127.0.0.1
@GetMapping("/selectIp") public HashMap<String, String> selectIp() { String ipHostAddress = ""; try { Enumeration<NetworkInterface> allNetInterfaces = ...
分类:编程语言   时间:2020-11-16 13:09:14    阅读次数:9
一键部署apache
一键部署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
X Server-Client
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
什么都2020了,LINQ查询你还在用表达式树
1、简介 今天给大家推荐个好的轮子,System.Linq.Dynamic.Core。我们都知道 数据库应用程序经常依赖于“动态SQL”,即在运行时通过程序逻辑构造的查询。拼接SQL容易造成SQL注入,普通的LINQ可以用表达式树来完成,但也比较麻烦。推荐System.Linq.Dynamic.Co ...
分类:其他好文   时间:2020-11-08 17:07:02    阅读次数:18
11.06针对“单个测试点包含多组数据”的解决
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
10804条   上一页 1 ... 15 16 17 18 19 ... 1081 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!