摘要: 1 #include 2 long long f[]= 3 { 4 1, 2, 5, 5 10, 20, 25, 50, 6 100, 125, 200, 250, 500, 7 1000, 1250, 2000,2500, 5000, 8 10000, 1... 阅读全文
posted @ 2013-03-23 16:11 Fann0221 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 写这道题快累死了,脑袋跟浆糊似的,做了好久才发现有比较简便的做法。。。。。、 1 #include 2 #include 3 #include 4 struct node 5 { 6 char name[21]; 7 char f[21]; 8 char t[... 阅读全文
posted @ 2013-03-22 20:33 Fann0221 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 思路:一开始想用链表做,但是想象了一下还是放弃,链表实现起来有些麻烦,然后想用数组,可是在写的过程中发现根本用不着,挺简单一题。用了一个标记变量和一个用来计数的变量就OK了。 1 #include 2 #include 3 #include 4 int a[10000001]; 5 int main... 阅读全文
posted @ 2013-03-16 19:19 Fann0221 阅读(120) 评论(0) 推荐(0) 编辑