找到规律,各一个种一棵树,或者施肥。先施肥,先种树一样。
Apple Tree
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 197 Accepted Submission(s): 135
Prob...
分类:
移动开发 时间:
2014-08-07 23:11:45
阅读次数:
381
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4925
思路:直接计算坐标和,如果为奇数就种树,但要注意行或列为1的情况。
写啦两种代码:一种直接判断计算的,另一种优化计算的
code1:
#include
#include
#include
#include
using namespace std;
int main()
{
i...
分类:
移动开发 时间:
2014-08-07 23:07:25
阅读次数:
306
间隔着取_(:зゝ∠)_
#include
#include
#include
using namespace std;
typedef long long ll;
int n, m;
int init(int i, int j) {
int cnt = 1;
if(i-1 >= 1) cnt *= 2;
if(i+1 <= n) cnt *= 2;
if(...
分类:
移动开发 时间:
2014-08-07 23:03:55
阅读次数:
255
题目链接题意 : 给你一块n×m的矩阵,每一个格子可以施肥或者是种苹果,种一颗苹果可以得到一个苹果,但是如果你在一个格子上施了肥,那么所有与该格子相邻(指上下左右)的有苹果树的地方最后得到的苹果是两倍,如果(i,j)有一颗苹果树,(i-1,j)与(i,j+1)施了肥,那么苹果应该是1的两倍2,2的两...
分类:
移动开发 时间:
2014-08-07 22:40:15
阅读次数:
278
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4925解题报告:给你n*m的土地,现在对每一块土地有两种操作,最多只能在每块土地上进行两种操作,第一种是种苹果树操作,第二种是施肥操作,种苹果树操作可以使得该块地长出一个苹果,施肥操作可以使得与这块土地相...
分类:
移动开发 时间:
2014-08-07 22:35:58
阅读次数:
256
http://acm.hdu.edu.cn/showproblem.php?pid=4925 Apple TreeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Othe...
分类:
移动开发 时间:
2014-08-07 21:47:40
阅读次数:
322
(These are 3D simulation pictures of CC-A80. These are not real photoes!!!) We have always had a dream to spread the open source Linux system to millions of households. Closed Apple system and Wind...
分类:
其他好文 时间:
2014-08-07 19:28:40
阅读次数:
357
1.Apple开发者账号分三种,个人和公司账号(99刀) 和企业账号(299刀) 2.企业账号的好处 1.在公司内部发布app。 2.在各个设备上使用? 3.可以获得苹果代码级别的支持。 注册前必备,公司DUNS(邓白氏编码) 附申...
分类:
移动开发 时间:
2014-08-07 19:25:20
阅读次数:
274
Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one a...
分类:
移动开发 时间:
2014-08-07 18:59:10
阅读次数:
293
// 系统大于等于7.0 if ([UIDevice currentDevice].systemVersion.floatValue >= 7.0) { url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id88888...
分类:
移动开发 时间:
2014-08-07 18:09:20
阅读次数:
251