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
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
分类:
其他好文 时间:
2015-02-25 21:11:19
阅读次数:
141
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:
The spa...
分类:
其他好文 时间:
2015-02-25 21:11:01
阅读次数:
177
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - Eng...
分类:
其他好文 时间:
2015-02-25 21:10:23
阅读次数:
157