
ACM
文章平均质量分 78
my1995
不要小看一点一滴。。。
今天的我,明天的你
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
又是斐波那契数列
又是斐波那契数列 Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64u Submit Status Description 有另一种斐波那契数列:F(0)=7,F(1)=11,F(n)=F(n-1)+F(n-2) (n>=2) Input翻译 2014-07-15 20:46:36 · 568 阅读 · 0 评论 -
hdu2080 求夹角有多大
http://acm.hdu.edu.cn/showproblem.php?pid=2080转载 2014-07-15 13:31:23 · 459 阅读 · 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 · 376 阅读 · 0 评论 -
POJ3790 Recursively Palindromic Partitions
Language: Default Recursively Palindromic Partitions Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 509 Accepted: 372 Description A partition of a pos原创 2014-07-15 14:15:06 · 555 阅读 · 0 评论 -
hdu1556 Color the ball
http://acm.hdu.edu.cn/showproblem.php?pid=1556 这道题我超时了jibian原创 2014-07-23 13:07:16 · 332 阅读 · 0 评论 -
hdu2674 N!Again
N!Again Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3311 Accepted Submission(s): 1780 Problem Description WhereIsHeroFrom:原创 2014-07-24 10:43:08 · 313 阅读 · 0 评论 -
基本数据结构(栈,队,列)模版
#include #include #include #include #include #define maxn 1001 using namespace std; vector vec; class Queue{ private: int data[maxn],fro,rear; public: Queue(){ fro=rear=0; } v原创 2014-07-23 10:27:59 · 338 阅读 · 0 评论 -
高级素数
#include #include using 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 · 334 阅读 · 0 评论 -
floyd算法
#include #include #include #include using 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 · 375 阅读 · 0 评论