错误 1 类型“System.Windows.Markup.IQueryAmbient”在未被引用的程序集中定义。必须添加对程序集“System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。 ...
1、简单模型)1、io.write函数: 函数模型为io.write(...))2、io.read函数: io.read(*all) 读取当前输入的整个文件 io.read(*line) 读取下一行 io.read(*number) 读取一个整数 io.read(num) 读取当前输入的不超过num...
分类:
其他好文 时间:
2014-09-28 11:30:51
阅读次数:
173
题目描述:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.解题方案:该题想不到其他好办法,唯有暴力破解,两点求斜率,如果斜率相同,意味着共线,然后求出最大...
分类:
其他好文 时间:
2014-09-28 10:50:31
阅读次数:
162
1. uname -ayou will view kernel name、network node hostname、kernel release、kernel version、machine hardware name、processor type 、hardware platform、oper....
分类:
系统相关 时间:
2014-09-28 03:12:30
阅读次数:
295
一、XML语法 xml文档声明 —— 用于声明xml的基本属性,用来指挥解析引擎如何去解析当前xml 通常一个XML都要包含并且只能包含一个文档声明 xml的文档必须在整个xml的最前面 在文档声明之前不能有任何内容 --version是必须存在的属...
分类:
其他好文 时间:
2014-09-28 02:41:10
阅读次数:
180
[leetcode] Latest added:2014-09-23Find the contiguous subarray within an array (containing at least one number) which has the largest product.For exam...
分类:
编程语言 时间:
2014-09-28 01:51:00
阅读次数:
499
题目地址:ZOJ 3690
假设F(n)表示前n个人第n个人选择的数大于k的个数,G(n)表示的是前n个人第n个人选择的数小于等于k的个数
那么F(n) = F(n-1)*(m-k)+G(n-1)*(m-k) , G(n) = F(n-1)*k+G(n-1)*(k-1) , 那么最后的结果就是F(n)+G(n);
那么我们可以构造出矩阵
| m-k m-k| | F(...
分类:
其他好文 时间:
2014-09-28 00:28:00
阅读次数:
175
Bitset
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 12693 Accepted Submission(s): 9772
Problem Description
Give you a number on b...
分类:
其他好文 时间:
2014-09-27 23:36:10
阅读次数:
184
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-09-27 23:31:00
阅读次数:
186
题目描述:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime...
分类:
其他好文 时间:
2014-09-27 18:53:40
阅读次数:
204