休闲时刻看看神经网络方面的书,发现了修道士和野人的问题,不禁勾引起我写算法的欲望,曾经的三只大老虎三只小老虎过河问题、人狼羊白菜过河问题、汉诺塔、哈夫曼等等各种算法瞬间在脑海中约隐约现,修道士和野人问题我以前好像没有解开,中午吃饭的时候在脑海中重新构造思路,下午耗了点时间把它干掉。(算法不在代码里, ...
分类:
其他好文 时间:
2016-10-26 16:43:56
阅读次数:
215
20161026模拟赛解题报告 By shenben T1 按照题目说的模拟即可 但这题有一个神坑:当25个字母都已经一一对应完毕后,剩下的两个字母默认对应。 T2 所有的逆序对之间都会连边,求最大独立点集。 表面上是个图论题,其实是个LIS O(nlogn)求最长上升子序列的长度即可AC T3 第 ...
分类:
其他好文 时间:
2016-10-26 16:10:42
阅读次数:
248
https://en.wikipedia.org/wiki/Grayscale https://zh.wikipedia.org/wiki/灰度图像 In photography and computing, a grayscale or greyscale digital image is an ...
分类:
其他好文 时间:
2016-10-26 14:18:13
阅读次数:
253
1、行末单独一个反斜杠表示字符串在下一行继续,而不是开始一个新的行。 2、自然字符串,如何需要某些字符串不需要转义,可以添加前缀r或R。 3、转换为Unicode字符串 ...
分类:
编程语言 时间:
2016-10-26 09:41:34
阅读次数:
252
需要命令:xinput 清自行用 man xinput 查询 xinput 帮助文档 1、插入鼠标,打开终端,输入命令:xinput 查询当前已挂在设备 2、拔出鼠标,打开终端,再输入命令:xinput 查询当前已挂在设备,发现缺少的设备即使你使用的鼠标 3、输入命令:xinput --set-pr ...
分类:
系统相关 时间:
2016-10-26 07:21:15
阅读次数:
372
访问权限控制总结: 1、当前类可以访问所有的修饰符的成员; 2、统一包内,除了private的成员,其他的都可以被访问到; 3、派生类(不在同一个包内)可以访问public和protected的变量; 4、其他包的普通类,只能够访问public的成员。 ...
分类:
其他好文 时间:
2016-10-26 07:10:20
阅读次数:
151
Last night I'd discovered that Charlie couldn't cook much besides friedeggs and bacon. 昨天晚上我终于发现查理除了煎蛋和熏肉什么也不会做。 So I requested that I be assigned kit ...
分类:
其他好文 时间:
2016-10-26 06:50:13
阅读次数:
151
//// ZFNavigationController.m// Cartext//// Created by 谢泽锋 on 16/3/20.// Copyright © 2016年 xiezefeng. All rights reserved.//#import "ZFNavigationContr ...
分类:
其他好文 时间:
2016-10-26 00:38:28
阅读次数:
218
Milk Patterns Description Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he disc ...
分类:
编程语言 时间:
2016-10-26 00:14:31
阅读次数:
224
Description Charlie is a driver of Advanced Cargo Movement, Ltd. Charlie drives a lot and so he often buys coffee at coffee vending machines at motore ...
分类:
其他好文 时间:
2016-10-26 00:10:59
阅读次数:
347