Search found 9 matches

by dennisorz
Mon Sep 23, 2013 7:16 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 17234

Re: Help!612 WA!why?

A same #include<iostream> #include<string.h> #include<stdio.h> #include<vector> using namespace std; vector<char> DNA[101]; int rank[100][2]; void initial(int n,int m){ for(int i=0;i<m;i++){ rank[i][0]=0; rank[i][1]=i; } for(int j=0;j<m;j++) DNA[j].clear(); } void func(int n,int m){ int count=0; for...
by dennisorz
Wed Sep 18, 2013 11:26 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 17234

Help!612 WA!why?

#include<iostream> #include<string.h> #include<stdio.h> #include<vector> using namespace std; vector<char> DNA[101]; int rank[100][2]; void initial(int n,int m){ for(int i=0;i<m;i++){ rank[i][0]=0; rank[i][1]=i; } for(int j=0;j<m;j++) DNA[j].clear(); } void func(int n,int m){ int count=0; for(int i...
by dennisorz
Thu Sep 05, 2013 12:01 pm
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3739

159 Way? WA

#include <iostream> #include <string.h> using namespace std; int posh[2],posw[2],F=0; //cross size void str(char a[],char b[],int num); //compare string void Fprint(char h1[],char v1[],char h2[],char v2[]); //print int main(){ int i,j,f; int frist=0; char h1[20],v1[20],h2[20],v2[20]; //word while(t...
by dennisorz
Sun Aug 25, 2013 7:02 am
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3739

Re: 159 - Word Crosses-Wrong answer

#include <iostream> #include <string.h> using namespace std; int posh[2],posw[2],F=0; //cross size void str(char a[],char b[],int num); //compare string void Fprint(char h1[],char v1[],char h2[],char v2[]); //print int main(){ int i,j,f; int frist=0; char h1[20],v1[20],h2[20],v2[20]; //word while(t...
by dennisorz
Fri Aug 23, 2013 8:34 am
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3739

Re: 159 - Word Crosses-Wrong answer

Oh no~~?wrong answer! #include <iostream> #include <string.h> using namespace std; int posh[2],posw[2],F=0; //cross size void str(char a[],char b[],int num); //compare string void Fprint(char h1[],char v1[],char h2[],char v2[]); //print int main(){ int i,j,f; int frist=0; char h1[20],v1[20],h2[20],v...
by dennisorz
Thu Aug 22, 2013 3:47 pm
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3739

Re: 159 - Word Crosses-Wrong answer

sorry!worng answer! #include <iostream> #include <string.h> using namespace std; int posh[2],posw[2],F=0; //cross size void str(char a[],char b[],int num); //compare string void Fprint(char h1[],char v1[],char h2[],char v2[]); //print int main(){ int i,j,f; int frist=0; char h1[20],v1[20],h2[20],v2[...
by dennisorz
Thu Aug 22, 2013 3:33 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 43453

Re: 101 - The Blocks Problem-wrong answer

accepted!thank you,"brianfry713".
by dennisorz
Wed Aug 21, 2013 10:58 am
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3739

159 - Word Crosses-Wrong answer

Please help me find bug! #include <iostream> #include <string.h> using namespace std; int posh[2],posw[2],F=0; //cross size void str(char a[],char b[],int num); //compare string void Fprint(char h1[],char v1[],char h2[],char v2[]); //print int main(){ int i,j,f; int frist=0; char h1[20],v1[20],h2[20...
by dennisorz
Wed Aug 21, 2013 10:54 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 43453

101 - The Blocks Problem-wrong answer

Please help me find bug! #include<iostream> #include<string.h> #include<vector> using namespace std; vector<unsigned int> block[25]; int Index[25]; void print(int N){ for(int i=0;i<N;i++){ cout<<i<<":"; for(int j=0;j<block[i].size();j++) cout <<" "<< block[i][j]; cout<<endl; } } void Clear(int p){ i...

Go to advanced search