1.函数的返回值只能有一个,而一元二次方程可能有两个根。 2. #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf("%d", &n); for(i=1; i<=n; ++ ...
分类:
其他好文 时间:
2020-12-09 12:31:55
阅读次数:
13
<el-form-item label="考试时长:" prop="testTimeLong"> <el-input-number style="width:110px" :min="0" v-model="ruleForm.testTimeLong" controls-position="righ ...
分类:
其他好文 时间:
2020-12-09 12:25:43
阅读次数:
4
任务一 不能设计成以返回值返回给主函数,因为返回值只能返回一个值,而根有两个。 任务二 // 利用局部static变量计算阶乘 #include <stdio.h> long long fac(int n); // 函数声明 int main() { int i,n; printf("Enter n ...
分类:
其他好文 时间:
2020-12-09 12:13:07
阅读次数:
6
树状数组 lowbit : 求最低位的 $1$ 以及后面的 $0$ 所组成的十进制数 #include<iostream> #include<cstdio> #include<cstring> #include<math.h> #include<algorithm> #define ll long ...
分类:
编程语言 时间:
2020-12-09 12:01:36
阅读次数:
14
我们先从一组 用例说起. 看代码: null > 0 // false null == 0 // false null >= 0 //true 我们今天讨论的主要内容,并不是这个结果可能看起来多么奇怪. 而是为什么会这样. 之所以特别记一篇随笔在这里,主要是因为,我在得到了 Brendan Eich ...
分类:
其他好文 时间:
2020-12-09 11:43:55
阅读次数:
7
php7之前的版本 function encrypt($input) { if (version_compare(PHP_VERSION, '7.0.0') >= 0) { $size = 16; $k = C('KEY_LONG'); $input = pkcs5_pad($input, $siz ...
分类:
编程语言 时间:
2020-12-09 11:34:20
阅读次数:
12
1.1 定义 厄拉多塞到底是怎样筛选素数的呢?他造了一张1到50的素数表,首先写上1到50的所有自然数,然后先划去1,把2留下,再划去其他所有2的倍数,把3留下。再划去其他所有3的倍数,把5留下。又划去其他所有5的倍数……依此类推,可以得到50以内的所有素数。这就是著名的“厄拉多塞筛法”。 1.2计 ...
分类:
其他好文 时间:
2020-12-08 12:45:58
阅读次数:
4
Sub 插入() On Error GoTo errHandler Dim i As Long '按照标题插入空行For i = 2 To Range("A1").CurrentRegion.Count - 1Selection.End(xlDown).SelectSelection.EntireR ...
分类:
其他好文 时间:
2020-12-08 12:43:24
阅读次数:
4
参考资料: https://www.cnblogs.com/chenliyang/p/6633739.html https://www.cnblogs.com/qingergege/p/5914218.html https://blog.csdn.net/huangxiaohu_coder/arti ...
#GET my_store/_search{ "query": { "match_all": {} }}#添加索引PUT /test2{ "mappings": { "properties": { "name":{ "type": "text" }, "age":{ "type": "long" } ...
分类:
其他好文 时间:
2020-12-08 12:13:35
阅读次数:
4