- 博客(15)
- 收藏
- 关注
原创 pku 1016
<br />Source CodeProblem:1016 User:cug_fish2008Memory: 264K Time: 16MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;voidchange(char c[],char p[]);boolcpre(char x[],char y[]);intmain(){char ch[100];while(cin>>ch && ch[0]!='-')
2010-06-18 10:26:00 314
原创 pku 1014
<br />Source CodeProblem:1014 User:cug_fish2008Memory: 204K Time: 0MSLanguage: C++ Result:AcceptedSource Code#include<stdio.h>boolfun(int sum,int w[]);intmain(){int c[7],n=1;int sum=0;for(int i=1;i<7;i++){scanf("%d",&c[i]); c[i]%=30; sum+=c[i]*i;}whi
2010-06-18 10:25:00 298
原创 pku 1013
<br />Source CodeProblem:1013 User:cug_fish2008Memory: 276K Time: 0MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;voiduee(char p1[],char p2[],char p3[],char p4[],char p5[],char p6[]);voiduue(char p1[],char p2[],char p3[],cha
2010-06-18 10:21:00 403
原创 pku 1012
<br />Source CodeProblem:1012 User:cug_fish2008Memory: 288K Time: 235MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;intmain(){int k=0;int a[14]={0};while((cin>>k)&&(k!=0)){if(a[k]){ cout<<a[k]<<endl;continue;}for(int m=k
2010-06-18 10:20:00 223
原创 pku 1011
<br />Source CodeProblem:1011 User:cug_fish2008Memory: 280K Time: 47MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;int p[65];int n,width,count;bool c[65];boolfind(int len,int k){if(len==width && k==n)returntrue;if(len==width
2010-06-18 10:19:00 287
原创 pku 1009
<br />Source CodeProblem:1009 User:cug_fish2008Memory: 288K Time: 16MSLanguage: C++ Result:AcceptedSource Code#include<iostream>#include<list>#include<vector>#include<math.h>usingnamespace std;int width;int current,cnum,n;structImage{int pixel,num;};struct
2010-06-17 10:12:00 624
原创 pku 1008
<br />Source CodeProblem:1008 User:cug_fish2008Memory: 336K Time: 0MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;inthaabmonth(char y[]);char*tt(int x);structNode{int day;char month[6];int year; Node *next;};intmain(){int
2010-06-17 10:11:00 351
原创 pku 1007
<br />Source CodeProblem:1007 User:cug_fish2008Memory: 300K Time: 47MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;voidchange(char&x,char&y);structNode{char h[50];int sum;};intmain(){ Node k[101]; Node ko[101];char ch;in
2010-06-17 10:10:00 275
原创 pku 1006
<br />Source CodeProblem:1006 User:cug_fish2008Memory: 300K Time: 32MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;structNode{int p;int e;int i;int d; Node *next;};intmain(){ Node *start; Node *pass; pass=new Node;
2010-06-17 10:08:00 242
原创 pku 1005
<br />Source CodeProblem:1005 User:cug_fish2008Memory: 292K Time: 0MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;classNode{public:Node(){x=y=0.0;}public:float x;float y; Node *next;};intmain(){int n; cin>>n; Node *sta
2010-06-17 10:07:00 310
原创 pku 1004
<br />Source CodeProblem:1004 User:cug_fish2008Memory: 268K Time: 16MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;intmain(){float x,sum=0.00;float p[12];for(int i=0;i<12;i++){cin>>x;p[i]=x;}for(int i=0;i<12;i++)sum+=p[i];
2010-06-16 20:15:00 207
原创 pku 1003
<br />Source CodeProblem:1003 User:cug_fish2008Memory: 292K Time: 0MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;classNode{public:Node(){f=0.00;}public:float f; Node *next;};intmain(){ Node *start,*pass; pass=new Node
2010-06-16 20:14:00 198
原创 pku 1002
<br />Source CodeProblem:1002 User:cug_fish2008Memory: 39860K Time: 719MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;intmap(char x);voidQuicksort(int x[],int p,int r);classNum{public:Num(){again=0;}public:int again;};intmai
2010-06-16 20:13:00 261
原创 pku 1001
<br />Source CodeProblem:1001 User:cug_fish2008Memory: 292K Time: 16MSLanguage: C++ Result:AcceptedSource Code#include<iostream>usingnamespace std;inttrans(char x){if(x=='0')return0;elseif(x=='1')return1;elseif(x=='2')return2;elseif(x=='3')return3;elseif(x
2010-06-16 20:12:00 286
原创 大家好!今晚开了CSDN的博客,专门的pku算法代码,希望给访问者有帮助。
我在csdn上有一个博客了,但是只是踩踩大本营,这个专门用来将之前做过的pku题目的代码贴上。希望对大家有帮助。。
2010-06-16 20:09:00 211
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人