码迷,mamicode.com
首页 >  
搜索关键字:华为设备 静态nat 动态nat pat    ( 13726个结果
1090. Highest Price in Supply Chain
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer. Starting from one root supplier, everyone on ...
分类:其他好文   时间:2015-03-08 17:15:36    阅读次数:130
PAT:1053. Path of Equal Weight (30) AC
#include#include#include#includeusing namespace std;const int MAX=1010;int n,m; //n个节点,m个非叶子节点 long long int S; //待测权值long long int weight[M...
分类:其他好文   时间:2015-03-08 16:56:00    阅读次数:177
PAT:1079. Total Sales of Supply Chain (25) AC
#include#include#includeusing namespace std;const int MAX=100010;int DEPest=0;int root=-1,N;double P,r,sum=0;vector child[MAX]; //child[父亲][孩子]...
分类:其他好文   时间:2015-03-08 15:26:07    阅读次数:138
PAT:1090. Highest Price in Supply Chain (25) AC
#include#includeusing namespace std;const int MAX=100010;int DEPest=0,times=0;vector child[MAX]; //child[父亲][孩子] 二维数组表示树形结构void DFS(int root,i...
分类:其他好文   时间:2015-03-08 14:08:55    阅读次数:178
PAT:1003. 我要通过!(20) AC
#include#includeint main(){ int n; scanf("%d",&n); while(n--) { char str[110]; scanf("%s",str); int len=strlen(str); int numP=0,numT=0...
分类:其他好文   时间:2015-03-08 11:41:52    阅读次数:142
PAT:1027. 打印沙漏(20) AC
#includeint main(){ int n; char xing; scanf("%d %c",&n,&xing); int num=1,i=1; while(1) { num = num + 2 * (i + 2); //一开始就超出,不改变i if...
分类:其他好文   时间:2015-03-07 19:57:45    阅读次数:111
PAT:1027. 打印沙漏(20) AC
#includeint main(){ int n; char xing; scanf("%d %c",&n,&xing); int num=1,i=1; while(1) { num = num + 2 * (i + 2); //一开始就超出,不改变i if...
分类:其他好文   时间:2015-03-07 19:56:03    阅读次数:153
1070. Mooncake
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now ...
分类:其他好文   时间:2015-03-07 18:46:06    阅读次数:132
PAT:1014. 福尔摩斯的约会 (20) AC
#include#include#include#include#includeusing namespace std;char g1[99],g2[99],g3[99],g4[99];char alp[7][5]={"MON","TUE","WED","THU","FRI","SAT","SUN"...
分类:其他好文   时间:2015-03-07 18:31:17    阅读次数:190
PAT:1001. A+B Format (20) AC
#includeint main(){ int a,b; scanf("%d%d",&a,&b); int sum=a+b; if(sum=1000000) //【思维】,两个数字在:-1000000 =1000) printf("%d,%03d",sum/1000,...
分类:其他好文   时间:2015-03-07 18:28:19    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!