package com.mydemo2; public class Student { public void study() { System.out.println("好好学习,天天向上"); }} package com.mydemo2; public class Teacher { publ ...
分类:
其他好文 时间:
2019-04-13 13:51:12
阅读次数:
180
pro:给定N个圆,求离原点最远的点,满足它在N个圆里。输出这个距离。N<50; sol:关键点一定是圆与圆的交点。 圆与 圆心到原点的直线 的交点。 然后去验证这些关键点是否在N个圆内。 实际操作的时候需要考虑一些条件: 1,求圆的交点的时候,先判断是否内含或者相离。 2,求直线与圆的交点的时候, ...
分类:
其他好文 时间:
2019-04-13 13:46:20
阅读次数:
150
void str_cli(FILE *fp, int sockfd) { int maxfdp1, stdineof; fd_set rset; char buf[MAXLINE]; int n; stdineof = 0; FD_SET(&rset); for ( ; ; ) { if (stdi... ...
分类:
其他好文 时间:
2019-04-13 13:44:07
阅读次数:
180
https://leetcode.com/problems/sum-of-square-numbers/ Given a non-negative integer c, your task is to decide whether there're two integers a and b such ...
分类:
其他好文 时间:
2019-04-13 10:41:19
阅读次数:
149
N wizards are attending a meeting. Everyone has his own magic wand. N magic wands was put in a line, numbered from 1 to n(Wand_i owned by wizard_i). A ...
分类:
其他好文 时间:
2019-04-13 01:17:59
阅读次数:
157
def login_required(view_func): @functools.wraps(view_func) def wrapper(*args, **kwargs): ...... return view_func(*args,**kwargs) return wrapper在wrappe ...
分类:
其他好文 时间:
2019-04-13 00:40:38
阅读次数:
178
Game with Strings 题意并不是在图上走,看了好久才看出来。。 dp[ i ][ mask ]表示从 i 层开始走,起点有mask个, a的个数-b的个数的 最大值或者最小值。 ...
分类:
其他好文 时间:
2019-04-12 20:37:49
阅读次数:
178
什么是函数编程接口? 抽象方法有且只有一个,并且被@FunctionalInterface注解该接口。 自定义一个函数式编程接口 传入不同calc函数实现的对象,进行调用 相当于以前创建CalcFunctionInterface的匿名类,实现了calc方法(由于只有一个抽象方法,所以默认就是calc ...
分类:
编程语言 时间:
2019-04-12 19:25:04
阅读次数:
325
指定定时任务 sh手动执行成功 ,contab执行失败 在脚本中添加 source /ect/profile 刷新一下环境变量 ...
分类:
系统相关 时间:
2019-04-12 19:21:32
阅读次数:
157
参考博客:http://www.cnblogs.com/wupeiqi/articles/5703697.html 一、概述 对于WEB应用程序:用户浏览器发送请求,服务器接收并处理请求,然后返回结果,往往返回就是字符串(HTML),浏览器将字符串(HTML)渲染并显示浏览器上。 1、传统的Web应 ...
分类:
Web程序 时间:
2019-04-12 16:29:38
阅读次数:
146