估计没几个人会想到研究性学习搞加各种特效的贪吃蛇的吧把这几周搞研究性学习的结果记录一下1.0:学会了用canvas画布画出好烂好烂的贪吃蛇界面……而且仅仅是界面……不过初学者嘛……不要在意这些细节 1 2 3 4 5 crazy_SNAKE 6 ...
分类:
其他好文 时间:
2015-04-04 01:12:25
阅读次数:
230
#include
using namespace std;
#define maxn 10000 + 10
int M[maxn][maxn];
int mark[maxn];
int n, m;
int solve()
{
int ans = 0;
for(int i=1; i<=n; i++)
{
int pos = -1;
...
分类:
其他好文 时间:
2015-04-01 17:35:46
阅读次数:
146
Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.
Bob has...
分类:
其他好文 时间:
2015-03-31 12:52:29
阅读次数:
129
注入集合类,主要包括:List、Set、Map、Pros等;整体结构:接口Axe.java package org.crazyit.app.service;public interface Axe{ public String chop();}Person.javapackage org.crazy...
分类:
编程语言 时间:
2015-03-31 12:15:09
阅读次数:
177
字符编码问题的确是万年的难题。之前我也处理过 R 语言中文乱码的问题,it just drives me crazy!!!!!!!!!!!!!!!!! HOLY SHIT!!!!!!!!!!!!要么就是这样的错误UnicodeEncodeError: ‘gbk’ codec can’t encode...
分类:
编程语言 时间:
2015-03-20 18:15:35
阅读次数:
174
贪吃蛇是一款非常经典的游戏,这些经典游戏给我们的童年添加了不少乐趣,今天開始我们来一步一步的在Android设备上实现一款贪吃蛇游戏,我也是第一次写这个游戏,有可能会写错,或者走弯路,可是终于希望能有一个好的结果,接下来我们一起来一步步的摸着石头开发吧。一、建立一个project二、自己定义View...
分类:
其他好文 时间:
2015-03-19 18:20:35
阅读次数:
221
Problem Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.Bob has...
分类:
其他好文 时间:
2015-03-16 19:22:16
阅读次数:
102
Crazy TankTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5033 Accepted Submission(s): 1017Proble...
分类:
其他好文 时间:
2015-03-12 09:40:58
阅读次数:
140
Dsecriptionn participants of «crazy tea party» sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time ...
分类:
其他好文 时间:
2015-03-08 21:19:43
阅读次数:
199
题意:输入一个n,计算ans= 1^n+2^n+3^n+4^n ,输出ans末尾几个0。
做法:规律题,刚开始暴力,看了下规律,发现最多末尾只会有2个零。而且有一定规律。所以可以找循环节,n%20。 或者用快速幂,我用快速幂,循环了一遍1到300000,发现确实末尾最多只有两个0,所以。。。...
分类:
其他好文 时间:
2015-03-07 20:02:28
阅读次数:
183