![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 78
my1995
不要小看一点一滴。。。
今天的我,明天的你
展开
-
又是斐波那契数列
又是斐波那契数列Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription有另一种斐波那契数列:F(0)=7,F(1)=11,F(n)=F(n-1)+F(n-2) (n>=2)Input翻译 2014-07-15 20:46:36 · 532 阅读 · 0 评论 -
hdu2080 求夹角有多大
http://acm.hdu.edu.cn/showproblem.php?pid=2080转载 2014-07-15 13:31:23 · 421 阅读 · 0 评论 -
hdu1050 Moving Tables
注意,题目的思路是两排房间,,不要最后看成一排了(我一开始就是看成一排滴,所以根本想不出下面这种思想)。房间是这样的:2,4,6,8,10,…… 1,3,5,7,9,……所以啦,不妨这样设想,将2,1房间,4,3,房间,6,5,房间统一考虑,将他们的空地分别标记为count[1],count[2],count[3],反正你每次原创 2014-07-29 11:31:58 · 298 阅读 · 0 评论 -
POJ3790 Recursively Palindromic Partitions
Language:DefaultRecursively Palindromic PartitionsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 509 Accepted: 372DescriptionA partition of a pos原创 2014-07-15 14:15:06 · 510 阅读 · 0 评论 -
hdu1556 Color the ball
http://acm.hdu.edu.cn/showproblem.php?pid=1556这道题我超时了jibian原创 2014-07-23 13:07:16 · 296 阅读 · 0 评论 -
hdu2674 N!Again
N!AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3311 Accepted Submission(s): 1780Problem DescriptionWhereIsHeroFrom:原创 2014-07-24 10:43:08 · 276 阅读 · 0 评论 -
基本数据结构(栈,队,列)模版
#include#include#include#include#include#define maxn 1001using namespace std;vector vec;class Queue{private: int data[maxn],fro,rear;public: Queue(){ fro=rear=0; } v原创 2014-07-23 10:27:59 · 304 阅读 · 0 评论 -
高级素数
#include#includeusing namespace std;int is_prime(int a){ int i; for(i = 2; i*i if(a % i == 0) return 0; if(i*i > a) return 1;}int main(){ int n, c, d, s[100转载 2014-07-10 17:46:57 · 278 阅读 · 0 评论 -
floyd算法
#include#include#include#includeusing namespace std;const int Maxn = 1000000;int f[105][105];int n,m;void floyd(){for(int k = 1; k for(int i = 1; i for(int j = 1; j if(i!=j &翻译 2014-07-15 20:52:12 · 330 阅读 · 0 评论