Hello World!
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
We know that Ivan gives Saya three problems to solve (Problem F), and this is the
first problem.
“We nee...
分类:
其他好文 时间:
2015-04-27 21:49:13
阅读次数:
162
题意:
求n 到 m 的区间范围内不含有4 和 62 的数字个数。 解题思路 与 HDU 3555类似
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 10;
int ...
分类:
其他好文 时间:
2015-04-27 21:48:13
阅读次数:
112
Round Robina
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Suppose that N players sit in order and take turns in a game, with the first person following the last pe...
分类:
其他好文 时间:
2015-04-27 21:48:03
阅读次数:
126
题目大意:给定字符串A和B,求A最短的子串/子序列S满足S不是B的子串/子序列
这题真TM有毒*2
搞法类似这道题
然后子串是后缀自动机 子序列自然就是序列自动机了= =
每更新一个x节点时所有没有x的后继的节点都连向这个节点
每个节点的parent是这个字母上一次出现的位置
每个字母记录最后一次出现的位置 更新指针时沿着parent指针撸一遍就行了#include
#...
分类:
其他好文 时间:
2015-04-27 21:47:52
阅读次数:
172
#include
#include
using namespace std;
class Triangle
{
public:
double perimeter();//计算三角形的周长
double area();//计算并返回三角形的面积
void showMessage();
Triangle(double x, double y, double z);
private:...
分类:
其他好文 时间:
2015-04-27 21:47:52
阅读次数:
122
#include
#include
#include
#include
#include // 包含线程库
#include ...
分类:
编程语言 时间:
2015-04-27 21:49:07
阅读次数:
126
JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意一个方法和属性;这种动态获取的信息以及动态调用对象的方法的功能称为java语言的反射机制
在学设计模式的时候,我们看到过一句话:“反射反射,程序员的快乐”,当时对这句话没有很深刻的认识,到学习了struts、spring等之后,感觉到反射真是很强大的存在。...
分类:
编程语言 时间:
2015-04-27 21:48:59
阅读次数:
127
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 20161
Accepted: 7532
Description
Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in th...
分类:
其他好文 时间:
2015-04-27 21:46:24
阅读次数:
130
#include
#include
using namespace std;
class Triangle
{
public:
double perimeter();//计算三角形的周长
double area();//计算并返回三角形的面积
void showMessage();
Triangle(double x, double y, double z);
private:...
分类:
其他好文 时间:
2015-04-27 21:47:38
阅读次数:
103
#include
#include
using namespace std;
class Triangle
{
public:
double perimeter();//计算三角形的周长
double area();//计算并返回三角形的面积
void showMessage();
Triangle(double x, double y, double z) :a(x), b(y...
分类:
其他好文 时间:
2015-04-27 21:47:16
阅读次数:
86
题目:打印出所有的 水仙花数 ,所谓 水仙花数 是指一个三位数,其各位数字立方和等于该数本身。
例如:153是一个 水仙花数 ,因为153=1的三次方+5的三次方+3的三次方。
public static void main(String[] args) {
System.out.println(Arrays.toString(getNarcissisticNumbe...
分类:
其他好文 时间:
2015-04-27 21:47:55
阅读次数:
128
网址:https://leetcode.com/problems/add-two-numbers/
题意:
可以用来做大数加法,
从低位开始两两相加,如果大于等于10,则进位
提示:
(1)l1为null 或 l2为null
(2)l1比l2长 或 l2比l1长
(3)l1和l2中的最高位仍然不足以表示两者的和,即需新建结点
解法1:
改变l1的值,
如果l1比l2短,则另接l...
分类:
其他好文 时间:
2015-04-27 21:46:06
阅读次数:
113
02. GIT命令行帮助
================================================================================
$ svn help
查看svn所有命令的帮助
$ svn help 子命令
# 要退出帮助信息,按"q"
# 翻看下页,按"空格"
# 翻看上页,按"CTRL+B"
# 要搜索相关文字,...
分类:
移动开发 时间:
2015-04-27 21:45:44
阅读次数:
206
1.list_head小解析:http://blog.sina.com.cn/s/blog_966f8e8501010n9g.html
注:list_head简单入门
2.list_entry()介绍:http://blog.csdn.net/junllee/article/details/7063347
3.list_head
实例:http://andrew9...
分类:
其他好文 时间:
2015-04-27 21:46:06
阅读次数:
171
题目连接:zoj2112
给出n个点,两种操作,Q:询问在[l,r]内的第k大的数,C:更改第i个数位x
动态的询问第k大,使用树状数组修改和查询前缀和。
因为给出的空间小,所以可以将n个点做成一个静态的主席树,然后对于修改的值,在另一个主席树中修改,查询时同时查询这两个主席树就可以了。
#include
#include
#include
using namespace std ;...
分类:
编程语言 时间:
2015-04-27 21:44:55
阅读次数:
165
矩阵交并周长的模板题
这题不需要离散化,需要注意的时候负坐标转化成正坐标
#include
#include
#include
using namespace std;
#define lson (pos<<1)
#define rson (pos<<1|1)
typedef long long LL;
const int maxn = 30005;
const int ADD = 1000...
分类:
其他好文 时间:
2015-04-27 21:45:45
阅读次数:
142
环境:cocos 引擎(包括 studio)2.2.1 for Mac、cocos2d-js-v3.5、Cocos Code IDE 1.2 for Mac,cocos 引擎指的是下面这个东西:各种软件的下载和安装网上很多教程,这里只是记录一下过程自己花时间比较多得环节。IDE 运行js-tests...
分类:
Web程序 时间:
2015-04-27 21:44:38
阅读次数:
143