- 博客(142)
- 资源 (13)
- 收藏
- 关注
原创 POJ 2513
Colored SticksTime Limit:5000MS Memory Limit:128000K Total Submissions:41270 Accepted:10684 DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick i...
2019-09-21 22:46:31 246
原创 POJ 2503
BabelfishTime Limit:3000MS Memory Limit:65536K Total Submissions:52653 Accepted:21811 DescriptionYou have just moved from Waterloo to a big city. The people here speak an i...
2019-08-11 17:32:56 322
原创 POJ 1308
Is It A Tree?Time Limit:1000MS Memory Limit:10000K Total Submissions:43024 Accepted:13980 DescriptionA tree is a well-known data structure that is either empty (null, void,...
2019-08-11 14:25:38 264
原创 POJ 2524
Ubiquitous ReligionsTime Limit:5000MS Memory Limit:65536K Total Submissions:44774 Accepted:21204 DescriptionThere are so many different religions in the world today that it...
2019-08-08 17:18:18 165
原创 POJ 1789
Truck HistoryTime Limit:2000MS Memory Limit:65536K Total Submissions:37100 Accepted:14246 DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types. Some truc...
2019-08-08 14:00:59 126
原创 POJ 1251
Jungle RoadsTime Limit:1000MS Memory Limit:10000K Total Submissions:36431 Accepted:17128 DescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A b...
2019-08-08 13:36:40 153
原创 POJ 2485
HighwaysTime Limit:1000MS Memory Limit:65536K Total Submissions:39406 Accepted:17366 DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has...
2019-08-08 13:16:15 93
原创 POJ 1258
Agri-NetTime Limit:1000MS Memory Limit:10000K Total Submissions:74989 Accepted:31018 DescriptionFarmer John has been elected mayor of his town! One of his campaign promises...
2019-08-08 13:09:06 110
原创 POJ 1125
Stockbroker GrapevineTime Limit:1000MS Memory Limit:10000K Total Submissions:41284 Accepted:23094 DescriptionStockbrokers are known to overreact to rumours. You have been c...
2019-08-07 21:53:48 132
原创 POJ 2253
FroggerTime Limit:1000MS Memory Limit:65536K Total Submissions:72017 Accepted:22071 DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notice...
2019-08-07 21:22:07 206
原创 POJ 1062
昂贵的聘礼Time Limit:1000MS Memory Limit:10000K Total Submissions:60666 Accepted:18328 Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金...
2019-08-07 16:42:19 376
原创 POJ 1797
Heavy TransportationTime Limit:3000MS Memory Limit:30000K Total Submissions:60448 Accepted:15064 DescriptionBackgroundHugo Heavy is happy. After the breakdown of the Carg...
2019-08-07 12:04:02 163
原创 POJ 1033
DefragmentTime Limit:2000MS Memory Limit:10000K Total Submissions:4990 Accepted:1752 Case Time Limit:1000MS Special Judge DescriptionYou are taking part in the d...
2019-08-04 12:05:36 173
原创 POJ 2488
A Knight's JourneyTime Limit:1000MS Memory Limit:65536K Total Submissions:56074 Accepted:19091 DescriptionBackgroundThe knight is getting bored of seeing the same black a...
2019-08-04 11:51:04 111
原创 POJ 1011
SticksTime Limit:1000MS Memory Limit:10000K Total Submissions:162064 Accepted:38913 DescriptionGeorge took sticks of the same length and cut them randomly until all parts b...
2019-08-02 19:20:15 202
原创 POJ 1129
Channel AllocationTime Limit:1000MS Memory Limit:10000K Total Submissions:18963 Accepted:9602 DescriptionWhen a radio station is broadcasting over a very large area, repeat...
2019-08-02 17:00:22 206
原创 POJ 1260
PearlsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10810 Accepted: 5611DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of je...
2019-07-14 13:00:51 250
原创 POJ 1221
UNIMODAL PALINDROMIC DECOMPOSITIONSTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5903 Accepted: 2896DescriptionA sequence of positive integers is Palindromic if it reads the same for...
2019-07-14 10:53:58 189
原创 POJ 1080
Human Gene FunctionsTime Limit:1000MS Memory Limit:10000K Total Submissions:21213 Accepted:11825 DescriptionIt is well known that a human gene can be considered as a sequen...
2019-07-08 23:00:49 215
原创 POJ 1141
Brackets SequenceTime Limit:1000MS Memory Limit:65536K Total Submissions:35539 Accepted:10273 Special Judge DescriptionLet us define a regular brackets sequence in ...
2019-07-07 21:30:10 307
原创 POJ 1042
Gone FishingTime Limit:2000MS Memory Limit:32768K Total Submissions:39929 Accepted:12429 DescriptionJohn is going on a fishing trip. He has h hours available (1 <= h <...
2019-07-06 23:56:02 299
原创 POJ 1015
Jury CompromiseTime Limit:1000MS Memory Limit:65536K Total Submissions:34623 Accepted:9370 Special Judge DescriptionIn Frobnia, a far-away country, the verdicts in ...
2019-07-05 23:43:11 185
原创 POJ 2593
Max SequenceTime Limit:3000MS Memory Limit:65536K Total Submissions:18628 Accepted:7781 DescriptionGive you N integers a1, a2 ... aN (|ai| <=1000, 1 <= i <= N)....
2019-07-03 21:43:25 145
原创 POJ 2479
Maximum sumTime Limit:1000MS Memory Limit:65536K Total Submissions:45591 Accepted:14088 DescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) ...
2019-07-03 21:37:22 350
原创 POJ 2709
PainterTime Limit:1000MS Memory Limit:65536K Total Submissions:5548 Accepted:3188 DescriptionThe local toy store sells small fingerpainting kits with between three and twel...
2019-07-02 16:48:16 98
原创 POJ 1521
EntropyTime Limit:1000MS Memory Limit:10000K Total Submissions:11479 Accepted:4128 DescriptionAn entropy encoder is a data encoding method that achieves lossless data compr...
2019-07-02 15:54:25 245
原创 POJ 1065
题目:Wooden SticksTime Limit:1000MS Memory Limit:10000K Total Submissions:27393 Accepted:11897 DescriptionThere is a pile of n wooden sticks. The length and weight of each ...
2019-07-01 23:29:51 356
转载 Kaggle爆文:一个框架解决几乎所有机器学习问题
转载自:http://baijiahao.baidu.com/s?id=1581788955363618987&wfr=spider&for=pc上周一个叫 Abhishek Thakur 的数据科学家,在他的 Linkedin 发表了一篇文章 Approaching (Almost) Any Machine Learning Problem,介绍他建立的一个自动的机器学习框架,几...
2018-05-18 23:07:17 1198
原创 matplotlib绘制图表简易教程
matplotlib基本图表包含以下元素:x、y轴x、y轴刻度x、y轴刻度标签绘图区域#encoding=utf-8import matplotlib.pyplot as pltx = [1,2,3,4]y = [5,4,3,2]fig = plt.figure()#线形#图表分为2*3的网格,并选择第一个,同sublpot(2,3,1)plt.subplot(231)plt.plot(x,y)#...
2018-03-29 20:38:51 718
原创 python处理csv,excel,json,sql数据
csv文件导入数据import csvwith open(filename) as f: reader = csv.reader()header = reader.next()data = [row for row in reader]import numpy data = numpy.loadtxt('test.csv',dtype='string',delimiter=',')excel文件导...
2018-03-28 23:19:15 507
原创 sklearn.neural_network常用API介绍
sklearn.nueral_network.MLPClassifier(hidden_layer_sizes=(100,),activation='relu',solver='adam',alpha=0.0001,batch_size='auto',learning_rate='constant',learning_rate_init=0.001,power_t=0.5,max_iter=200...
2018-03-24 21:37:00 6754
原创 sklearn.neighbors常用API介绍
K近邻算法:对新的输入数据,在训练数据上找到与该实例最邻近的k个实例,k个实例的多数属于的类别作为输入数据的类别。用于分监督学习的k近邻算法:sklearn.neighbors.NearestNeighbors(n_neighbors=5,radius=1.0,algorithm='auto',leaf_size=30,metric='minkowski',p=2,metric_params=No...
2018-03-24 15:00:12 3903
原创 sklearn.naive_bayes常用API介绍
高斯朴素贝叶斯sklearn.naive_bayes.GaussianNB(priors=None):priors:array-like,shape(n_classes,)类别的先验概率,如果指定则不会根据数据改变属性:class_prior_:array,shape(n_classes,)每一类的概率class_count_:array,shape(n_classes,)每一类的训练样本个数th...
2018-03-24 00:40:44 2458
原创 sklearn.linear_model常用API介绍
sklearn.linear_model.LinearRegression(fit_intercept=True,normalize=False,copy_X=True,n_jobs=1)返回一个线性回归模型,损失函数形式为fit_intercept:boolean,可选,True(默认):是否计算截距,即f(x)=w.T*X或者f(x)=w.T*X+bnormalize:boolean,可选,F...
2018-03-23 22:08:50 5337
原创 sklearn.feature_extraction常用API介绍
特征提取:sklearn.feature_extraction.DictVectorizer(dtype=,separator='=',sparse=True,sort=True)将映射转化为向量。字典类型的对象转化为numpy.array或者scipy.sparse特征值为string类型时,向量表示为one-hot二元编码,出现的string为1,其余为0.特征值为int等
2018-03-22 20:09:27 4457
原创 sklearn.cluster常用API介绍(KMeans,MiniBatchKMeans)
问题:对于给定的数据集{x1,x2...xn},如何根据样本点自身的数据特性实现分类,也就是在没有标签的情况下将距离较近的数据点划分到同一类,假设这个类别就是他们的标签。也就是解决如下问题:通过计算机来将人类可以迅速分类的点群划分出来。这里介绍几个常用的求点到中心距离公式:1)Minkowski Distance 公式 —— λ 可以随意取值,可以是负数,也可以是正数,或是无穷大。2)Euclid...
2018-03-21 16:15:18 10416
原创 sklearn.datasets常用API介绍
sklearn.datasets返回元组(X,y),X是n_samples*n_features的矩阵表示样本特征,y是n_samples*1的矩阵表示标签含有属性data为X,target是y含有属性DESCR包含feature_names和target_names,表示数据集的详细描述.load_boston([return_X_y]) 返回波士顿房价数据集,回归问题return_X_y:默认...
2018-03-21 14:35:39 1075
原创 Python3.6应用Pyinstaller打包py文件的一些注意事项
打开cmd进入要打包的py文件目录,使用命令Pyinstaller -F -w -p -i myfile.py-F 表示生成单个可执行文件-w 表示去掉控制台窗口,这在GUI界面时非常有用。不过如果是命令行程序的话那就把这个选项删除吧!-p 表示你自己自定义需要加载的类路径,一般情况下用不到-i 表示可执行文件的图标当py文件中含有第三方库时,打包之前要把用到的第三方库文件
2017-11-05 16:31:50 4201
转载 Windows下安装scikit-learn
Windows下安装scikit-learn准备工作Python (>= 2.6 or >= 3.3),Numpy (>= 1.6.1)Scipy (>= 0.9),Matplotlib(可选).NumPyNumPy系统是Python的一种开源的数值计算扩展。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list struct
2017-05-29 22:23:13 789
原创 装双系统时装在了逻辑分区的解决方案
相信很多人都会有在现有系统下再安装另一个操作系统的想法。昨天下午我在虚拟机上安装了一个win7,于是自信满满的在物理机上安装win7了。首先用分区助手给要安装的系统分配一个足够大小的系统盘分区。我是只有c,d盘,所以重新分了一个e盘,大小为150g,作为win7的系统盘已经足够大了。然后通过大白菜制作的安装系统U盘进入U盘启动,开始装win7,大约持续了二十分钟左右,win7装机完成。这时
2017-05-17 13:11:22 1815
离散数学结构翻译版中文版
2016-11-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人