实验任务4#include<stdio.h> #include<math.h> int main() { int n,a,b,i,s; printf("Enter a number:"); scanf("%d",&n); while(n){ i=0; s=0; while(n!=0){ a=n%10 ...
分类:
其他好文 时间:
2020-11-23 12:22:09
阅读次数:
3
scanf()函数是通用终端格式bai化输入函数,du它从标准输入设备(键盘)读取输zhi入的信息。可以读入任dao何固有类型的数据并自动把数值变换成适当的机内格式。其调用格式为:scanf(“<格式化字符串>”,<地址表>);scanf()函数返回成功赋值的数据项数,出错时则返回EOF; 其控制串 ...
分类:
其他好文 时间:
2020-11-21 12:39:38
阅读次数:
12
#概述 es/kibana 7.4.2 enable security docker 19.x.y requirment #resource limits /etc/security/limits.d/20-nproc.conf #* soft nproc 4096 root soft nproc ...
分类:
其他好文 时间:
2020-11-21 11:57:04
阅读次数:
6
原题目简介 タナカ氏が HW アールの果樹園を残して亡くなりました。果樹園は東西南北方向に H × W の区画に分けられ、区画ごとにリンゴ、カキ、ミカンが植えられています。タナカ氏はこんな遺言を残していました。 果樹園は区画単位でできるだけ多くの血縁者に分けること。ただし、ある区画の東西南北どれかの ...
分类:
其他好文 时间:
2020-11-21 11:56:29
阅读次数:
4
DateTimeFormatter formatter= DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");//对象转字符串String timeStr = formatter.format(LocalDateTime.now());System. ...
分类:
编程语言 时间:
2020-11-20 12:18:29
阅读次数:
24
#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
@GetMapping("/selectIp") public HashMap<String, String> selectIp() { String ipHostAddress = ""; try { Enumeration<NetworkInterface> allNetInterfaces = ...
分类:
编程语言 时间:
2020-11-16 13:09:14
阅读次数:
9