Search found 9 matches

by Zhls
Wed Nov 10, 2004 11:34 am
Forum: Volume 1 (100-199)
Topic: 149 - Forests
Replies: 37
Views: 11106

Here is my new code:
At this time it can pass most sample inputs that I can find in this website!
Such as:
0.5 0.5 0.5 -> 4
0.1 0.4 0.6 -> 134
0.1 0.5 0.5 -> 132
0.43 0.5 0.5 -> 12
0.25 0.25 0.33 -> 24
0.15 0.18 0.46 ->58
but I cannot get correct output when the input is :
0.15 0.16 0.19 -> 62
0.125 ...
by Zhls
Tue Nov 09, 2004 3:28 pm
Forum: Volume 1 (100-199)
Topic: 149 - Forests
Replies: 37
Views: 11106

I am trying to solve this program in this way:
to get the first Quadrant number,
then rotates the entire map 90 degrees
and so on.
In this way I get the total number;
But unlucky I cannot pass almost test input! even the sample input given
by the program.
Here is my code.
Can someone give me some ...
by Zhls
Tue Nov 09, 2004 3:31 am
Forum: Volume 1 (100-199)
Topic: 149 - Forests
Replies: 37
Views: 11106

Can anyone give me some hints on the Pro.149?

I am very sad to face the problem 149.
For I have no good way to get it!
And also I am afraid the double precision(can I get the right answer?).
Can someone give me some hints?
I'm waiting for your warm heart!
by Zhls
Thu Nov 04, 2004 2:50 pm
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 22457

Thank you very much for your warm heart. Krzysztof Duleba!
As the hints in your first reply, I continue with my C++ program, and
This time I use the ch[2] to recieve the first alpha of the input,
and never change other places.
and I keep use line like:

cout<<setfill(' ');
cout.flags(ios::right ...
by Zhls
Thu Nov 04, 2004 2:12 pm
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 22457

But I realy get the Correct Answer In my Computer.
In my Computer ,the Output for the Sample Input is As:
183-5724 2 4 0 A 0.44
Otherwise I don't think it can confuse my for so long time!


But I think it may be having something with my Complier.
I'm using the Microsoft Visual C++ 6.0.
And it is ...
by Zhls
Thu Nov 04, 2004 11:58 am
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 22457

***145 Gondwanaland Telecom***Why I get a P.E???

Why I get PE on the pro.145?
I have check my output format again and again.
But I don't find the bug!
So I hope you can help me, Thank you.....
My code is as :

[cpp]
#include <iostream.h>
#include <iomanip.h>

double dayCost[5] = {86.40, 216.00, 475.20, 736.80, 1236.00};
double charge[5][3 ...
by Zhls
Wed Oct 20, 2004 6:57 am
Forum: Volume 1 (100-199)
Topic: 129 - Krypton Factor
Replies: 25
Views: 5464

I finaly get AC !
I'm glad to find my fault suddently when I remember words for my English
exam. For my program, I can only produce the seqences that begin with 'A', for I use backdating(2), and I assume that the first of a sequence must be A, but that obvious wrong, For example, if the input is
4 ...
by Zhls
Mon Oct 18, 2004 8:14 am
Forum: Volume 1 (100-199)
Topic: 129 - Krypton Factor
Replies: 25
Views: 5464

Can anyone give me some test data?
I have spent a lot of time on this problem!
And I think it is difficult to check out the fault by me only!
I beg your helps!
plz..........
by Zhls
Sat Oct 16, 2004 2:43 pm
Forum: Volume 1 (100-199)
Topic: 129 - Krypton Factor
Replies: 25
Views: 5464

129 Krypton Factor Help me!!! plz

I'm tired to say that why I always get WA on this problem.
my C++ code:
/////////////////////////////////////////////////////////////////////////////////////
#include <iostream.h>

int n;
int L;
int* Sequence;
int num;
int last;

int isHard(int t, int range)
{
int cls;
int i, j;
int mark;
cls ...

Go to advanced search