#include<stdio.h>intmain(){inta=0;intb=0;intc=0;scanf("%d%d%d",&a,&b,&c);if(a<b){inttmp=a;a=b;b=tmp;}if(a<c){inttmp=a;a=c;c=tmp;}if(b<c){inttmp=b;b=c;c=tmp;}printf
分类:
其他好文 时间:
2020-12-21 11:13:40
阅读次数:
0
#include<stdio.h>intmain(){intm=24;intn=18;intr=0;while(m%n){r=m%n;m=n;n=r;}printf("%d\n",n);return0;}
分类:
其他好文 时间:
2020-12-21 11:13:24
阅读次数:
0
//打印闰年#include<stdio.h>intmain(){intyear=0;intcount=0;for(year=1000;year<=2000;year++){if(year%4==0&&year%100!=0){printf("%d",year);count++;}elseif(year%400==0){printf("%d",year);coun
分类:
其他好文 时间:
2020-12-21 11:12:56
阅读次数:
0
CST8221–JAP,Assignment 2, Part 2,MMXX Page 1 of 9Assignment 2 part 2: Othello Networking Value: 8% of your overall grade.Due date: December 13th (Sund ...
分类:
其他好文 时间:
2020-12-21 11:02:31
阅读次数:
0
重磅干货,第一时间送达题目构建乘积数组题目要求给定一个数组A[0,1,...,n-1],请构建一个数组B[0,1,...,n-1],其中B中的元素B[i]=A[0]A[1]...A[i-1]A[i+1]...A[n-1]。不能使用除法。解题思路为了方便理解题目,下面举个例子A=[1,2,3,4]B=[234,134,124,123]如果可以用除法的话:那就比较容易了所以不能使用除法,那就只能从乘法
分类:
编程语言 时间:
2020-12-21 10:58:24
阅读次数:
0
vue2.0通过defineProperty进行数据双向绑定 例如:(他接受三个参数,都是必填!) var a= {} Object.defineProperty(a,"b",{ value:123 }) console.log(a.b);//123 传入参数 第一个参数:目标对象 第二个参数:需要 ...
分类:
其他好文 时间:
2020-12-21 10:56:17
阅读次数:
0
源程序: #include <stdio.h>#include <string.h> int main(){ char str[20]; int length; length=strlen(strcpy(str,"Hello World!")); printf("字符串长度:%d\n",length ...
分类:
编程语言 时间:
2020-12-19 12:52:11
阅读次数:
5
题目:只出现一次的数字 给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。 示例 示例 1: 输入: [2,2,1] 输出: 1 示例 2: 输入: [4,1,2,1,2] 输出: 4 代码 class Solution: def singleNu ...
分类:
其他好文 时间:
2020-12-19 12:05:55
阅读次数:
1
计算属性 为什么需要计算属性 把复杂的计算逻辑用简洁的模板内容体现出来。 计算属性的用法 computed: { reverseString: function(){ return this.msg.split('').reverse().join(''); } } 弄好了直接在页面中引用计算属性的 ...
分类:
其他好文 时间:
2020-12-18 13:08:47
阅读次数:
3
配置组装适合自己的查询语句利用BoolQueryBuilder(布尔查询组装):publicclassElasticSearchBuilderQuery{/***构建基本查询-搜索关键字(数据分词。按逗号)*@paramsearchMap*@return*/publicstaticBoolQueryBuilderbuildBasicQuery(PageDatasearchMap){//构建布尔查询
分类:
其他好文 时间:
2020-12-18 13:05:03
阅读次数:
2