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 ...
Search found 9 matches
- Wed Nov 10, 2004 11:34 am
- Forum: Volume 1 (100-199)
- Topic: 149 - Forests
- Replies: 37
- Views: 11106
- Tue Nov 09, 2004 3:28 pm
- Forum: Volume 1 (100-199)
- Topic: 149 - Forests
- Replies: 37
- Views: 11106
- 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!
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!
- Thu Nov 04, 2004 2:50 pm
- Forum: Volume 1 (100-199)
- Topic: 145 - Gondwanaland Telecom
- Replies: 62
- Views: 22457
- Thu Nov 04, 2004 2:12 pm
- Forum: Volume 1 (100-199)
- Topic: 145 - Gondwanaland Telecom
- Replies: 62
- Views: 22457
- 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 ...
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 ...
- 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 ...
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 ...
- Mon Oct 18, 2004 8:14 am
- Forum: Volume 1 (100-199)
- Topic: 129 - Krypton Factor
- Replies: 25
- Views: 5464
- 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 ...
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 ...