#include#includeusing namespace std;struct cake{ double amount; double sum_price,price;}M[1010];bool cmp(cake a,cake b){ return a.price>b.price;}in...
分类:
其他好文 时间:
2015-02-27 20:06:39
阅读次数:
148
本题目要求编写程序统计一行字符中单词的个数。所谓“单词”是指连续不含空格的字符串,各单词之间用空格分隔,空格数可以是多个。...
分类:
其他好文 时间:
2015-02-27 17:14:08
阅读次数:
142
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n...
分类:
其他好文 时间:
2015-02-27 16:54:57
阅读次数:
102
Reference:http://www.codeproject.com/Questions/52709/C-Bitmap-Save-Generic-GDI-Error这个网页里解释了为什么会出现这样的问题和怎么解决的。Refernence:GDI+中发生一般性错误Bitmap(string pat...
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
分类:
其他好文 时间:
2015-02-27 13:42:44
阅读次数:
167
1075. PAT Judge (25)姥姥的心思真够细的! 呵呵sb=1 submit成功过至少一次,即某次提交得分>=0;sc[i] = -1 ,用户这道题没有提交过。一次也没有;sc[i] = 0 ,用户这道题提交过。是否得分了呢? 可能也可能没有。。。 1 #include 2 #incl....
分类:
其他好文 时间:
2015-02-26 21:26:17
阅读次数:
171
银行有n个窗口,每个窗口可以排m个人,在n×m以外的顾客会选择最短的队列进行排队。给出每个顾客需要消耗的时间长度,求出每个顾客具体结束服务的时间。
//本题需要有较好的抽象能力,把题目的问题,转化了相应的数学模型,这样就容易办了...
分类:
其他好文 时间:
2015-02-26 10:00:54
阅读次数:
124
#include#includeusing namespace std;struct Student{ int mID; int grade[4]; //0对应平均A,1对应C,2对应M,3对应E}STU[2010];char course[4]={'A','C','M...
分类:
其他好文 时间:
2015-02-26 01:20:39
阅读次数:
133