Problem Description
There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules:
● ai ∈ [0,n]
● ai ≠ aj( i ≠ j )
For sequence a and sequence b,...
分类:
其他好文 时间:
2014-09-15 21:22:10
阅读次数:
240
题目以下思路参考自discuss:http://poj.org/showmessage?message_id=176353/*我的思路:1.将长串数分成一个个部分,每个部分是从1到x的无重复的数字序列2.每个序列比前一个序列多的位数是他的最后一个数的位数,如12345678910比123456789...
分类:
其他好文 时间:
2014-09-15 21:01:49
阅读次数:
186
<fx:Declarations>
<!--将非可视元素(例如服务、值对象)放在此处-->
<mx:ArrayListid="dataList">
<fx:int>10</fx:int>
<fx:String>8</fx:String>
<fx:Number>7.5</fx:Number>
<fx:uint>17</fx:uint>
<..
分类:
其他好文 时间:
2014-09-15 19:53:20
阅读次数:
183
HDU 1492 The number of divisors(约数) about Humble Numbers(数学题)...
分类:
其他好文 时间:
2014-09-15 19:32:29
阅读次数:
190
/*to solve the problem ,i think we can use stack to maintain the numbers,and list to keep it sorted,which is very important to find the Median number....
分类:
其他好文 时间:
2014-09-15 19:07:19
阅读次数:
181
Problem Description
It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string. F...
分类:
其他好文 时间:
2014-09-15 17:47:39
阅读次数:
183
每个数想要得到最大的异或值,就肯定是在二进制上是互补的,所以暴力找出互补的数。
#include
#include
#include
#include
#include
#include
#define LL long long
using namespace std;
int a[110000];
int n;
int link[110000];
int bit(int n)
{
...
分类:
其他好文 时间:
2014-09-15 17:45:49
阅读次数:
197
在js中,变量没有类型,数据有类型的,js的数据类型分为两类,1. 基本数据类型 (Undefined , Null , Boolean , Number , Infinity , Nan , string ) 2. 引用类型( object ) .。为什么第一种数据类型叫基本数据类型,而不叫值.....
分类:
Web程序 时间:
2014-09-15 17:26:19
阅读次数:
173
这是由于GetProcessMemoryInfo在不同系统版本号不同导致的,官方说明如下:
Remarks
Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions. The PSAPI version number affect...
分类:
其他好文 时间:
2014-09-15 16:02:11
阅读次数:
1127
Problem Description
[img]http://acm.hdu.edu.cn/data/images/C235-1007-1.jpg[/img] Since 1945, when the first nuclear bomb was exploded by the Manhattan Project team in the US, the number of nuclear we...
分类:
其他好文 时间:
2014-09-15 15:57:19
阅读次数:
216