求1000-2000之间的闰年;C语言实现;代码练习
分类:
编程语言 时间:
2020-11-01 10:53:36
阅读次数:
23
我发现有些人习惯在 /etc/profile 文件里面配置环境变量,在这里配置挺不好的。 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (ba ...
分类:
系统相关 时间:
2020-11-01 10:17:26
阅读次数:
24
任务1 #include <stdio.h> int main() { int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d",d,e,f); return 0; } 对应数学运算式分别是0*100;50 ...
分类:
其他好文 时间:
2020-11-01 10:04:28
阅读次数:
12
#include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } 任务2 #include<s ...
分类:
其他好文 时间:
2020-11-01 10:00:57
阅读次数:
8
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } d=ac/b,e= ...
分类:
其他好文 时间:
2020-11-01 09:51:04
阅读次数:
8
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } d=[5/7] ...
分类:
其他好文 时间:
2020-11-01 09:48:13
阅读次数:
5
# include <bits/stdc++.h> using namespace std; const int N = 2050; int n,m; int lowbit(int x) {return x & -x;} struct _2wBIT { int a[N][N]; void clear ...
分类:
其他好文 时间:
2020-11-01 09:41:49
阅读次数:
19
#include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } 数学计算式:d=5/7*100=0*100= ...
分类:
其他好文 时间:
2020-11-01 09:40:48
阅读次数:
10
我们经常会遇到某个日志文件会特别大的情况,比如Nginx记录的日志文件,怎么才能够在进程正常运行的情况下切割日志呢,看下面的代码片段 #!/bin/bash _nginx_home="/usr/local/openresty/nginx" _log_home="/tmp" _time=$(date ...
分类:
系统相关 时间:
2020-11-01 09:37:46
阅读次数:
26