码迷,mamicode.com
首页 >  
搜索关键字:PAT 动态地址转换    ( 13520个结果
PAT:1020. 月饼 (25) AC
#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
循环-06. 统计一行文本的单词个数(15)
本题目要求编写程序统计一行字符中单词的个数。所谓“单词”是指连续不含空格的字符串,各单词之间用空格分隔,空格数可以是多个。...
分类:其他好文   时间:2015-02-27 17:14:08    阅读次数:142
PAT 1076 Forwards on Weibo
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
循环-04. 验证“哥德巴赫猜想”(20)
验证“哥德巴赫猜想”(20)...
分类:其他好文   时间:2015-02-27 15:17:38    阅读次数:382
C# Bitmap Save Generic GDI+ Error
Reference:http://www.codeproject.com/Questions/52709/C-Bitmap-Save-Generic-GDI-Error这个网页里解释了为什么会出现这样的问题和怎么解决的。Refernence:GDI+中发生一般性错误Bitmap(string pat...
分类:Windows程序   时间:2015-02-27 14:53:33    阅读次数:253
1003. Emergency
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)
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
zju-pat 1014
银行有n个窗口,每个窗口可以排m个人,在n×m以外的顾客会选择最短的队列进行排队。给出每个顾客需要消耗的时间长度,求出每个顾客具体结束服务的时间。 //本题需要有较好的抽象能力,把题目的问题,转化了相应的数学模型,这样就容易办了...
分类:其他好文   时间:2015-02-26 10:00:54    阅读次数:124
PAT:1012. The Best Rank (25) AC
#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
zju pat 1015
zju pat 1015...
分类:其他好文   时间:2015-02-25 22:23:58    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!