#include int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); if (a + b > c&&a + c > b&&b + c > a) { printf("yes"); } else { printf("no"); } return ... ...
分类:
其他好文 时间:
2018-10-14 00:23:54
阅读次数:
109
Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proport ...
分类:
其他好文 时间:
2018-10-14 00:23:46
阅读次数:
212
"传送门" Solution 我们知道当SG不为0则先手必胜,然后就可以打表了 ̄▽ ̄ Code ...
分类:
其他好文 时间:
2018-10-14 00:23:37
阅读次数:
159
Redis官方没有windows版本的,对于Windows环境的redis,有如下两个方案 微软的移植版本,但只支持到3.2 下载地址 win10及以上的版本直接通过win10的liunx子系统执行 这里以windows的移植版本为例: 启动服务: redis-server.exe 更多启动参数可以... ...
分类:
其他好文 时间:
2018-10-14 00:23:27
阅读次数:
197
第二章实验报告 20171003172 陈满 1. 题目来源:《计算机算法设计与分析》,王晓东 设a[0:n-1]是已排好序的数组,请改写二分搜索算法,使得当x不在数组中时,返回小于x的最大元素位置i和大于x的最小元素位置j。当搜索元素在数组中时,i和j相同,均为x在数组中的位置。 输入格式: 输入 ...
分类:
其他好文 时间:
2018-10-14 00:23:11
阅读次数:
248
类方法:隐式接收第一个参数为类本身的方法,通过类或实例皆可调用,在类方法定义中不能访问实例属性及调用实例方法,可以访问已定义的类属性和调用已定义的类方法,使用@classmethod装饰器进行定义: 实例方法:隐式接收第一个参数为实例本身的方法,只能通过实例进行调用,在实例方法定义中可以访问自身已定 ...
分类:
编程语言 时间:
2018-10-14 00:23:03
阅读次数:
141
1个格式错误,1个运行超时。 ...
分类:
其他好文 时间:
2018-10-14 00:22:55
阅读次数:
149
题目描述: 输入n个整数,找出其中最小的K个数。例如输入4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4,。 思路: 使用快排中的partition思想。①我们设定partition函数的哨兵为key=lists[left],在partition函数中完成一轮比较的结果是, ...
分类:
编程语言 时间:
2018-10-14 00:22:49
阅读次数:
155
#include int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a%b==0&&a%c==0) printf("Yes\n"); else printf("No\n"); return 0; } ...
分类:
编程语言 时间:
2018-10-14 00:22:32
阅读次数:
177
基本 Add commit reset 分支与合并 branch checkout bash git checkout [ q] [ f] [ m] [] git checkout [ q] [ f] [ m] detach [] git checkout [ q] [ f] [ m] [ deta ...
分类:
其他好文 时间:
2018-10-14 00:22:25
阅读次数:
205
圣杯布局 head middle left right middle left right footer ...
分类:
其他好文 时间:
2018-10-14 00:22:17
阅读次数:
153
[TOC] MVC架构 wxDocManager文档管理器 wxWidgets使用 类来管理MVC中的文档和视图的对应关系,使用方法: 1. 创建一个 对象,然后向此对象中增加文档模板 对象,文档模板对象中说明了文档类型和该文档对应的文档类、视图类; 2. 将此 对象传递给 类(SDI),这样框架类 ...
分类:
Web程序 时间:
2018-10-14 00:22:09
阅读次数:
202
基础环境:linux centos7.2 1、cloudera manager下载地址: http://archive-primary.cloudera.com/cm5/cm/5/cloudera-manager-centos7-cm5.14.0_x86_64.tar.gz 2、cdh5.14.0 ...
分类:
其他好文 时间:
2018-10-14 00:22:01
阅读次数:
872
一般情况下,只有 root 用户可以使用 PuTTY 访问串口设备,如果要为普通用户增加访问串口设备的权限,可按如下步骤进行: (以 Ubuntu 14.04.3 系统为例,第一个串口设备,会被识别为 /dev/ttyUSB0) (1) 进入目录 /etc/udev/rules.d (2) 新建文件 ...
分类:
其他好文 时间:
2018-10-14 00:21:52
阅读次数:
197
请配合https://www.cnblogs.com/Guishuzhe/p/9524790.html使用 models.py ...
分类:
其他好文 时间:
2018-10-14 00:21:45
阅读次数:
127
flynn-host bootstrapflynn 是一个不错的开源paas 平台,基于git 以及容器技术,开发模型与 heroku 基本一样,同时构建方式就是基于heroku 的buildpacks 安装 官方文档提示说明是ubuntu 操作系统16 以及14 ,所以安装就试用ubuntu了 s ...
分类:
其他好文 时间:
2018-10-14 00:21:37
阅读次数:
266
转:https://blog.csdn.net/q1512451239/article/details/53122687 springboot默认创建的bean是单实还是多例 曾经面试的时候有面试官问我spring的controller是单例还是多例,结果我傻逼的回答当然是多例,要不然control ...
分类:
编程语言 时间:
2018-10-14 00:21:28
阅读次数:
547