链接越来越感觉到了数学的重要性!。。这题本来用以斜率和长度为key值进行hash不过感觉很麻烦还TLE了。。最后知道中点一样的话就可以组成平行四边形,初中数学就可以了。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #inclu....
分类:
其他好文 时间:
2014-07-22 22:52:13
阅读次数:
291
题目如下: Counting Subsequences Time Limit: 5000 MSMemory Limit: 65536 K Description ?"47 is the quintessential random number," states the 47 society. And there might be a grain of truth in that....
分类:
其他好文 时间:
2014-07-22 08:13:34
阅读次数:
281
Kindergarten Counting GameEverybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how man...
分类:
其他好文 时间:
2014-07-22 00:37:36
阅读次数:
248
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。依据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:
移动开发 时间:
2014-07-22 00:33:35
阅读次数:
239
贪心加树状数组
给出的数据可能出现两种情况,包含与不包含,但我们从右向左删就能避免这个问题;
#include
#include
#include
using namespace std;
const int maxn=200010;
int f[maxn],l[maxn],a[maxn];
long long tree[maxn];
int n;
inline int lowbit(int ...
分类:
其他好文 时间:
2014-07-22 00:27:36
阅读次数:
210
【Interface Property】 Properties can be declared on aninterface (C# Reference). 按如下形式实现interfac来避免冲突。 在没有interface前缀的情况下,编译器不会报错,2个interface引用同一...
分类:
其他好文 时间:
2014-07-21 10:03:52
阅读次数:
253
There arenpeople standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" loudly, then the se...
分类:
其他好文 时间:
2014-07-19 11:33:34
阅读次数:
383
比赛的时候这道题卡了大半时间,虽然说其他题目也挺多不会的。昨天一直觉得自己代码是没问题的,今早起来想想,可能是题意读错了,特意去看了一遍中文题意,恍然大悟。第一:题意为只要 “含7的,或是7的倍数” 就拍手,比赛时被看成了尾数是7就拍手。第二:今早交一次又WA了,原因是判断每位数是不是7的地方出了问...
分类:
其他好文 时间:
2014-07-19 11:30:50
阅读次数:
271
Counting Game There are n people standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" lo....
分类:
其他好文 时间:
2014-07-19 00:20:58
阅读次数:
245
5. MySQL 服务管理5. MySQL 服务管理... 15.1 The Mysql Server15.2 Mysql 服务日志... 15.2.1 选择General query log和slow query log 的输出方式... 15.2.2 Error Log. 15.2.3 Gene...
分类:
数据库 时间:
2014-07-18 12:19:11
阅读次数:
648