Search found 29 matches

by Archangel
Sun Dec 08, 2002 7:40 am
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 12616

Thanks for your great help! :D
by Archangel
Thu Sep 19, 2002 6:40 pm
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 27082

Your tricky test case really useful. This test case fail my algorithm. It's seem that I should refigure out a better algorithm to prevent this kind of test case.. :D
By the way, Thanks for paying so much attention to my problem ^^.
by Archangel
Sun Sep 15, 2002 6:12 pm
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 27082

According to your input data, my program can produce the right answer.
And I also add some code to ignore the number that > 50 but still got Wrong Answer! :cry:. I haven't started to optimize my efficiency of my program but at least there is some simple input case that I still don't consider in my ...
by Archangel
Sun Sep 15, 2002 12:00 pm
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 27082

WA 307 sticks

Can anybody help me what the flaw of algorithm I used in this problem? :cry:

1.read in all sticks, store them in a array and sort them in a decreasing order according to their length.
2.when reading in the sticks, I also use a variable to record the maximum length stick and sum of all sticks ...
by Archangel
Wed Sep 04, 2002 7:57 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 32281

WA 112...

I have test as many case(negative number,empty tree) as I can, but still get WA, can anybody help me?

/* problem 112 C++ */
#include<iostream.h>
#include<vector>

char cursor,sign,precursor;
int num,query,i,j,sum,level;
bool result;

using namespace std;

void main(void)
{
vector<int> numlv ...
by Archangel
Fri Aug 23, 2002 9:09 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 16279

Here is my code:)

#include<iostream.h>
#include<stdlib.h>

struct bumperprofile
{
int value;
int cost;
};

short row,col,bumpernum,bumperrow,bumpercol,i,j,index;
short ballrow,ballcol,lifetime,direction,oricol,orirow;
int wallcost,totalscore,partialscore;

void main(void)
{
while(cin>>col>>row ...
by Archangel
Tue Aug 13, 2002 6:27 pm
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 16279

About problem 114 Simulation Wizardry

Does this problem have any special test case to let me get WA? :cry:
by Archangel
Sat Aug 10, 2002 7:38 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60440

WA!! problem 406 Prime Cuts


#include<iostream.h>
#include<math.h>
#include<vector>

using namespace std;

short N,C,i,j,count,midindex,temp;

void main(void)
{
vector <short> primelist;
primelist.push_back(1);
primelist.push_back(2);
primelist.push_back(3);
for (i=4;i<1001;i++) /* make a list of prime number at range 1 ...
by Archangel
Thu Aug 01, 2002 7:21 am
Forum: Other words
Topic: About ACM forum
Replies: 1
Views: 1965

About ACM forum

Does anybody know any other ACM forum ??
by Archangel
Thu Aug 01, 2002 12:06 am
Forum: Volume 6 (600-699)
Topic: 613 - Numbers That Count
Replies: 7
Views: 3290

613 - Numbers That Count

Any tricky input in this problem?? I got WA :( so many times...
by Archangel
Wed Jul 24, 2002 10:57 pm
Forum: Volume 3 (300-399)
Topic: 325 - Identifying Legal Pascal Real Constants
Replies: 63
Views: 25465

325 - Identifying Legal Pascal Real Constants

Does anybody have any idea of tricky input ?? :cry: I got so many times wrong answer...><
by Archangel
Sun Jul 21, 2002 11:49 pm
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 12616

123 - Searching Quickly

Here is my algorithm:

0.three array: ignore,title,keyword(also store "the title it come from"and "keyword position in the title").
1.Read in words to ignore and stored them in a array(ignore).
2.Read in titles, one word at a time to a string.(If read in a upper
case letter, it will be changed ...
by Archangel
Fri Jul 19, 2002 6:33 pm
Forum: Volume 1 (100-199)
Topic: 187 - Transaction Processing
Replies: 18
Views: 11371

187 - Transaction Processing

Can anybody help me why I always got Runtime Error (signal 11 (SIGSEGV) Invalid memory reference )? :cry:

#include<iostream.h>
#include<string.h>

typedef struct /* structure for transaction */
{
char accountnum[3]; /* transaction account */
float money; /* transaction charge */
}transac ...
by Archangel
Wed Jul 17, 2002 10:07 pm
Forum: General
Topic: where to find the answers or source codes of problemssets
Replies: 8
Views: 3152

:D dawynn is right !! Got accepted is just a little meaning..What you learn from coding is the most important.
by Archangel
Mon Jul 15, 2002 4:23 am
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 22441

Your wisdom really do me a great favor. I finally got accept!! Thank you for paying so much attention to my problem :D

Go to advanced search