Where there is a will, there is a way. 有志者,事竟成。 Well begun is half done. 好的开端是成功的一半。 East, west, home is best. 金窝、银窝,不如自己的草窝。 There is no royal road to learning. 学无坦途。 Look before yo
翻译 精选 2012-04-26 01:27:39
897阅读
famous yum for media player on linux. yum list "gstream*"
yum
原创 2012-09-23 15:38:34
409阅读
1点赞
题目The Famous Clock时间限制:1000 ms  |  内存限制:65535 KB难度:1描述 Mr. B, Mr. G and Mr. M are now in Warscided to take a 5 hours
原创 2022-12-02 00:19:00
77阅读
城市-HDU4252 题目链接:[Problem - 4252 (hdu.edu.cn)]() 思路: 一栋房子可能延申多列,导致数量不太好算。 可以维护一个从栈顶到栈底单调递减的栈来实现计数。 因为从第二列开始向后操作,如果i比i-1要高那么第i列就不可能和第i-1列是同一幢建筑。 反之,如果i比 ...
转载 2021-08-08 22:42:00
100阅读
2评论
The Famous Clock时间限制:1000ms | 内存限制:65535KB难度:1描述Mr. B, Mr. G and Mr. M are now in Warsaw, Poland, for the 2012’s ACM-ICPC World Finals Contest. They’v...
转载 2014-04-06 00:25:00
147阅读
2评论
HDU 4255 A Famous Grid http://acm.hdu.edu.cn/showproblem.php?pid=4255 解题思路:广度优先搜索恶心题。题目考查知识不难,都是一些裸算法。只是题目操作有点繁杂,还有意想不到的边界条件,弄得题目有点恶心。 一个特殊的数表中(见题图),给出两个数字,求这两个数字之间的最短搜索距离(可以走四个方向)。但是,搜索过程中,不能经
原创 2013-09-17 21:00:00
390阅读
A Famous City Time Limit: 10000/3000 MS (Ja Problem Description After Mr. B
原创 2023-05-15 00:29:53
17阅读
题目:​​http://acm.hdu.edu.cn/showproblem.php?pid=4256​​#include <iostream> using namespace std; int main() { string s; int n,T=1; while(cin>>s) { if(s=="I") n=1;
原创 2022-08-23 08:19:25
52阅读
J - 1010Time Limit:1000MS     Memory Limit:32768KB     64bit IO Fo
原创 2022-08-06 00:03:22
54阅读
时间限制: 5 Sec 内存限制: 128 MB题目描述When Mr. B, Mr. G and Mr. M were preparing for t
原创 2020-09-08 19:31:15
53阅读
A Famous CityTime Limit: 3000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:425264-bit integer IO format:%I64d Java class name:...
转载 2014-10-18 11:24:00
68阅读
HDU 4255 A Famous Grid http://acm.hdu.edu.cn/showproblem.php?pid=4255 解题思路:广度优先搜索恶心题。题目考查知识不难,都是一些裸算法。只是题目操作有点繁杂,还有意想不到的边界条件,弄得题目有点恶心。一个特殊的数表中(见题图),给出两个数字,求这两个数字之间的最短搜索距离(可以走四个方向)。但是,搜索过程中,不能经过内容为素数的点。打表,搜索,小心素数,小心边界。 题目说x,y是在[1,10000]中,很多孩子就直接开了100X100的数组,把10000以内的数的表打出来。当然,包括纯洁的我。其实虽然是最大值是10000,但是
转载 2013-09-18 18:57:00
97阅读
2评论
A Famous GridTime Limit: 10000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 798Accepted Submission(s): 318Problem DescriptionMr. B has recently discovered the grid named "spiral grid".Construct the grid like the following figure. (The grid is actually
转载 2013-04-16 12:04:00
228阅读
2评论
题目:​​http://acm.hdu.edu.cn/showproblem.php?pid=4252​​题目有几个重要的地方每一个“0”,都会将建筑物分割开,高的建筑物可以挡住低的,低的挡不住高的         121        用
原创 2022-08-23 08:16:47
21阅读
luogu嘟嘟嘟 这题刚开始特别容易理解错:直接枚举所有$n + 1$种情况,然后算哪一种情况合法,再统计答案。 上述思想的问题就在于我们从已知的结果出发,默认这种每一种情况中取出$q$个红球,$p -q$个蓝球的概率是1,但实际上无法保证取出的红球或是蓝球的数量刚好是这些。 那应该是啥咧,设袋中红
原创 2021-05-29 20:36:17
45阅读
其实是杭电的一题 但既然第一次见是在NY...
转载 2016-01-19 22:11:00
86阅读
The Famous Clock时间限制:1000 ms  |  内存限制:65535 KB难度:1描
原创 2022-07-29 13:44:11
39阅读
int main(){ int kase = 0; char s[50]; while( scanf("%s",s)!=EOF ){ printf("Case %d: ",++kase); if( !strcmp(s,"I") ) printf("1\n"); if( !strcmp(s,"II") ) print
原创 2022-08-05 16:40:04
31阅读
#include#include#include#include#define N 40400#define MAX 210#define CNT 4400using namespace std;bool isprime[N];int prime[CNT],cnt;int map[MAX][MAX];bool visited[MAX][MAX];struct point {
原创 2022-08-05 15:50:44
14阅读
其实是杭电的一题 但既然第一次见是在NY...
转载 2016-01-19 22:11:00
63阅读
  • 1
  • 2
  • 3
  • 4
  • 5