因为痛,所以叫青春

我有一个梦想:穷屌丝变身富屌丝
上一页 1 ··· 4 5 6 7 8

2012年5月21日

uva 490 - Rotating Sentences

摘要: 这道题目在题目的示例输入与输出上面可能会误导我们,如果像我这样英语不是很好,又懒得啃题目意思的人来说,很容易就由于猜测题目意思做题,而导致一次次的出现错误,不是PE就是wrong answer具体的细节会在代码中讲解View Code 1 Rotating Sentences 2 3 In ... 阅读全文

posted @ 2012-05-21 21:25 Nice! 阅读(992) 评论(0) 推荐(1) 编辑

2012年5月14日

逆序建链表

摘要: 逆序建链表其实是一道很简单得程序题目,稍微动一下脑袋,就能找到门路,我们学习这个的时候只用了几分钟就把自己的链表建立起来了View Code 1 #include 2 #include 3 struct node 4 { 5 int num; 6 struct node *next... 阅读全文

posted @ 2012-05-14 07:04 Nice! 阅读(268) 评论(0) 推荐(0) 编辑

2012年3月29日

求小于一个数n的所有数的阶乘

摘要: /*求给定一个数N,int main(){int n;while(scanf("%d",&n) != EOF){printf("0! = 1\n");//对于所有给定的数,先输出0的阶乘if(n > 0)//如果N > 0,则首先输出1的阶乘printf("1! = 1\n");int data,i... 阅读全文

posted @ 2012-03-29 17:09 Nice! 阅读(535) 评论(0) 推荐(0) 编辑

2012年3月18日

Black and white painting 一道很简单的规律题目

摘要: View Code Black and white paintingTime Limit: 1000MS Memory limit: 65536K题目描述You are visiting the Centre Pompidou which contains a lot of modern paint... 阅读全文

posted @ 2012-03-18 09:44 Nice! 阅读(448) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8