D. R2D2 and Droid Army
An army of n droids is lined up in one row. Each droid is described by m integers a1,?a2,?...,?am,
where ai is
the number of details of thei-th type in this droid's m...
分类:
其他好文 时间:
2015-04-17 11:39:56
阅读次数:
154
【简介】 人工智能(Artificial Intelligence) ,英文缩写为AI。它是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门新的技术科学。 人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式作出反应的智能机器,该领域....
分类:
其他好文 时间:
2015-04-17 07:06:08
阅读次数:
110
自己想出的一种用于实际开发的AI模糊决策方法...
分类:
其他好文 时间:
2015-04-16 23:47:49
阅读次数:
401
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-04-16 23:23:23
阅读次数:
127
题目:
Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find tw...
分类:
其他好文 时间:
2015-04-16 21:59:36
阅读次数:
114
codeforces 526 e Transmitting Levels
题意:
给出n个数a1,a2,...,an,这n个数首尾相接形成一个环。
如:1 2 3
(1,2) (2,3) (3,1) 相连
现在再给出q个询问,每个询问为一个b,求把这n个数分成相连的m段,使得每段的和不超过b,求m的最小值。
限制:
2
1
1
max(ai)
思路:
先找出一个最小的段,从最小的段中枚举起点,取最...
分类:
其他好文 时间:
2015-04-16 14:24:37
阅读次数:
194
$.map()将一组元素转换成其他数组(不论是否是元素数组)例:var countries = { "北": "北京", "bj": "北京", "AF": "Afghanistan", "AG": "Antigua and Barbuda", "AI": "Angui...
分类:
Web程序 时间:
2015-04-16 14:18:24
阅读次数:
124
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:
其他好文 时间:
2015-04-16 01:17:43
阅读次数:
127
在“吃豆子”游戏中,计划将有3种不同类型的敌人。
· 松散型:在碰到墙壁后才会回头
· 守卫型:当敌人和主人公“大嘴”处在同一行或者是同一列后才会引起警觉接近大嘴。
· 扰乱性:不断的接近大嘴。
这三种敌人分别用以下的函数实现:
//AI人工智能处理
void RedOne::MakeDecision(bool b)
{
int i = rand();
if (b)//碰到墙壁,改变...
分类:
其他好文 时间:
2015-04-15 19:35:53
阅读次数:
136
扩展欧几里得,求一组解x,y,使得gcd(a,b) = d = a * x + b * y
扩展欧几里得,求所有解x,y,使得c = a * x + b * y
扩展欧几里得,求a关于n的逆元a^-1,使得a * a^-1 ≡ 1(mod n)
扩展欧几里得,求解x,满足同余方程组x ≡ Ri(mod Ai)
扩展欧几里得,求解x,满足高次同余方程A^x ≡ B(mod C)...
分类:
其他好文 时间:
2015-04-15 17:07:38
阅读次数:
177