http://acm.hdu.edu.cn/showproblem.php?pid=1338 Problem Description Suppose there are M people, including you, playing a special card game. At the begi ...
分类:
其他好文 时间:
2018-09-25 12:40:40
阅读次数:
141
文章名称:Guest Editors’ Introduction:Special Issue on Advances in Management of Softwarized Networks 发表时间:2017 期刊来源:IEEE Transactions on Network and Servi ...
分类:
Web程序 时间:
2018-09-24 17:10:07
阅读次数:
172
Excutor 源码解读:/** * An object that executes submitted {@link Runnable} tasks. This * interface provides a way of decoupling task submission from the * ... ...
分类:
其他好文 时间:
2018-09-24 00:44:06
阅读次数:
170
Description A research laboratory of a world leading automobile company has received an order to create a special transmission mechanism, which allows ...
分类:
编程语言 时间:
2018-09-22 21:19:35
阅读次数:
292
本篇主要想要详细的介绍一下关于类的魔法方法__new__()方法。 在学习之前我们看一下Python3中关于object基类的__new__() 方法: 上述描述:__new__()创建和返回一个新的对象。通俗说:该魔法属性是用来创建实例对象的。接下来我们看一下它的是如何创建对象的。 一、理解 1、 ...
分类:
编程语言 时间:
2018-09-22 00:49:13
阅读次数:
203
1. 文件的操作 1.1 open操作 格式: 源码: 1 def open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True): # known special case o ...
分类:
编程语言 时间:
2018-09-20 15:57:52
阅读次数:
1231
Web框架本质 我们可以这样理解:所有的Web应用本质上就是一个socket服务端,而用户的浏览器就是一个socket客户端。 这样我们就可以自己实现Web框架了。 socket服务端 import socket sk = socket.socket() sk.bind(("127.0.0.1", ...
分类:
Web程序 时间:
2018-09-18 17:26:11
阅读次数:
185
Problem "hdu 2866" 题意:求区间$[2,L]$有多少素数$p$满足$n^3+pn^2=m^3$,其中$n,m$属于任意整数 Solution 原式等价于$n^2(p+n)=m^3$ 可证当$p|\gcd(n^2,n+p)$时,无解,因为当$n=k\cdot p$时 $k^2p^3+ ...
分类:
其他好文 时间:
2018-09-17 22:09:58
阅读次数:
220
Sudoku Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 24108 Accepted: 11259 Special Judge Description Sudoku is a very simple task. A squa ...
分类:
其他好文 时间:
2018-09-15 15:17:42
阅读次数:
115
Description We are supposed to make a budget proposal for this multi-site competition. The budget proposal is a matrix where the rows represent differ ...
分类:
其他好文 时间:
2018-09-14 16:02:11
阅读次数:
155