码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
类名作为返回值案例
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
Gym - 101617F :Move Away (圆的交点)
pro:给定N个圆,求离原点最远的点,满足它在N个圆里。输出这个距离。N<50; sol:关键点一定是圆与圆的交点。 圆与 圆心到原点的直线 的交点。 然后去验证这些关键点是否在N个圆内。 实际操作的时候需要考虑一些条件: 1,求圆的交点的时候,先判断是否内含或者相离。 2,求直线与圆的交点的时候, ...
分类:其他好文   时间:2019-04-13 13:46:20    阅读次数:150
使用select正确处理EOF的str_cli函数
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
#Leetcode# 633. Sum of Square Numbers
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
K - Wand(组合数+错排公式)
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
装饰器中的@functools.wraps的作用
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
Codeforces 354B dp Game with Strings dp
Game with Strings 题意并不是在图上走,看了好久才看出来。。 dp[ i ][ mask ]表示从 i 层开始走,起点有mask个, a的个数-b的个数的 最大值或者最小值。 ...
分类:其他好文   时间:2019-04-12 20:37:49    阅读次数:178
Java8自定义函数式编程接口
什么是函数编程接口? 抽象方法有且只有一个,并且被@FunctionalInterface注解该接口。 自定义一个函数式编程接口 传入不同calc函数实现的对象,进行调用 相当于以前创建CalcFunctionInterface的匿名类,实现了calc方法(由于只有一个抽象方法,所以默认就是calc ...
分类:编程语言   时间:2019-04-12 19:25:04    阅读次数:325
linux 看执行任务的一些邮件
指定定时任务 sh手动执行成功 ,contab执行失败 在脚本中添加 source /ect/profile 刷新一下环境变量 ...
分类:系统相关   时间:2019-04-12 19:21:32    阅读次数:157
Django(十九)Ajax全套
参考博客:http://www.cnblogs.com/wupeiqi/articles/5703697.html 一、概述 对于WEB应用程序:用户浏览器发送请求,服务器接收并处理请求,然后返回结果,往往返回就是字符串(HTML),浏览器将字符串(HTML)渲染并显示浏览器上。 1、传统的Web应 ...
分类:Web程序   时间:2019-04-12 16:29:38    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!