码迷,mamicode.com
首页 >  
搜索关键字:pat    ( 13517个结果
1021. Deepest Root
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root ...
分类:其他好文   时间:2015-03-02 14:57:37    阅读次数:151
1020. Tree Traversals
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
分类:其他好文   时间:2015-03-02 13:16:06    阅读次数:112
PAT:1083. List Grades (25) AC
#include#includeusing namespace std;struct Student{ char name[15]; char ID[15]; int gread;}STU[66666];bool cmp(Student a,Student b){ return a.grea...
分类:其他好文   时间:2015-03-02 12:55:55    阅读次数:179
PAT:1075. PAT Judge (25) 炒鸡复杂
#include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank;}S[10066];int p[6]; //1-5存题号1...
分类:其他好文   时间:2015-03-02 12:46:57    阅读次数:188
TS数据流PAT和PMT分析(转载)
转自:http://www.cnblogs.com/hjj801006/p/3837435.htmlTS流,是基于packet的位流格式,每个packet是188个字节或者204个字 节(一般是188字节,204字节格式是在188字节的packet后面加上16字节的CRC数据,其他格式相同),解析T...
分类:其他好文   时间:2015-03-02 12:35:41    阅读次数:206
1017. Queueing at Bank
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow li...
分类:其他好文   时间:2015-03-02 09:38:56    阅读次数:160
1019. General Palindromic Number
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers...
分类:其他好文   时间:2015-03-02 09:36:02    阅读次数:111
PAT1040. Longest Symmetric String
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym...
分类:其他好文   时间:2015-03-02 09:29:08    阅读次数:123
PAT:1055. The World's Richest (25) AC
#include#include#includeusing namespace std;struct Person{ char name[10]; int age,money;}P[100010];bool cmp(Person a,Person b){ if(a.money!=b.money...
分类:其他好文   时间:2015-03-01 23:44:05    阅读次数:186
PAT:1028. List Sorting (25) AC
#include#include#includeusing namespace std;struct Student{ char ID[10]; char name[10]; int gread;}STU[100010];bool cmp1(Student a,Student b){ ret...
分类:其他好文   时间:2015-03-01 20:56:07    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!