码迷,mamicode.com
首页 >  
搜索关键字:candy    ( 281个结果
SPOJ Problem 2148:Candy III
和I一样水,只不过要注意的是输入数据会特别大,所以应该先取模再相加。#includelong long n,s,t,x,i;int main(){ scanf("%lld",&n); while(n--){ s=0; scanf("%lld",&t); ...
分类:其他好文   时间:2015-03-05 19:15:03    阅读次数:139
SPOJ Problem 2123:Candy I
#include#includeint n,i,j,p,s;int a[10001];int abs(int p){return p>0?p:-p;}int main(){ while(scanf("%d",&n)&&n!=-1){ p=0; for (i=1;i<...
分类:其他好文   时间:2015-03-04 20:48:44    阅读次数:183
unity3d游戏开发经验之对于关卡类游戏的技巧
过关类游戏在单机类游戏中出现会比较多,但多以休闲为主,比如《Candy Crush》、《Angry Birds》、《P V Z》、《小鳄鱼顽皮爱洗澡》、《Tiny Thief》等经典休闲游戏,鉴于很多圈内人士预测2014年是手游爆发年,且重点在ARPG类型,似乎会冒出很多横版过关或者全3D的过关动作类游戏,我们就针对此类型的游戏进行分析。 首先,此类型的游戏需要关注的是每关卡的独立玩家数...
分类:编程语言   时间:2015-02-28 23:06:10    阅读次数:366
LeetCode 笔记25 Candy (艰难的调试)
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:其他好文   时间:2015-02-25 23:39:26    阅读次数:202
J - Candy Sharing Game(模拟题)
主要是理解题目意思,然后就按照它说的来模拟就好了。 Description A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blo...
分类:其他好文   时间:2015-02-20 09:46:44    阅读次数:158
POJ 3083-Children of the Candy Corn(dfs+bfs)
Children of the Candy Corn Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10380   Accepted: 4485 Description The cornfield maze is a popular Halloween t...
分类:其他好文   时间:2015-02-17 14:09:21    阅读次数:207
LeetCode 135. Candy (O(n)时间 O(n)和O(1)空间的两种实现)
贪心算法,从局部最优推广成全局最优。 这里介绍O(n)时间 O(n)和O(1)空间的两种实现方法。...
分类:其他好文   时间:2015-02-17 00:50:26    阅读次数:174
dfs+bfs poj 3038
Children of the Candy CornTime Limit:1000MSMemory Limit:65536KTotal Submissions:10331Accepted:4466DescriptionThe cornfield maze is a popular Halloween...
分类:其他好文   时间:2015-02-12 10:43:47    阅读次数:127
hdu4322 最大费用最大流
http://acm.hdu.edu.cn/showproblem.php?pid=4322 Problem Description There are N candies and M kids, the teacher will give this N candies to the M kids. The i-th kids for the j-th candy has a pr...
分类:其他好文   时间:2015-02-04 13:04:31    阅读次数:218
codeforces C. Inna and Huge Candy Matrix
http://codeforces.com/problemset/problem/400/C题意:给你一个n*m的矩阵,然后在矩阵中有p个糖果,给你每个糖果的初始位置,然后经过x次顺时针反转,y次旋转,z次逆时针反转,问最后每个糖果的位置。思路:推出顺时针反转、旋转、逆时针反转的坐标的变化即可。 1...
分类:其他好文   时间:2015-02-01 20:26:55    阅读次数:139
281条   上一页 1 ... 18 19 20 21 22 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!