Search found 163 matches

by Emilio
Mon Jan 23, 2006 12:54 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14803

by Emilio
Mon Jan 09, 2006 2:38 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30799

To Schutzstaffel:

This is your modified code, give AC.
Reply when you see this post and I will cut off here.

Code: Select all

CUT
by Emilio
Thu Jan 05, 2006 3:55 am
Forum: Volume 103 (10300-10399)
Topic: 10351 - Cutting Diamonds
Replies: 10
Views: 5311

To minskcity:
change abs(mx - a/2) by fabs(mx - a/2) and will get AC.
by Emilio
Wed Jan 04, 2006 8:37 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182920

Schutzstaffel wrote:
If x < y then you swap the value of y to x
For her(I guess) code must swap the values if x > y.

=viki= wrote
how long to take the input?
For example in this manner:

Code: Select all

while (scanf("%d%d",&x,&y)==2)
{
    .....
}
by Emilio
Wed Jan 04, 2006 8:29 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13880

This is the reason to your question:
If there is more than one sequence that results in a profit of more than 1 percent you must print a sequence of minimal length, i.e., one of the sequences that uses the fewest exchanges of currencies to yield a profit.
Good luck!
by Emilio
Tue Jan 03, 2006 7:21 am
Forum: Volume 5 (500-599)
Topic: 587 - There's treasure everywhere!
Replies: 37
Views: 2641

The fault is another, iomanip library is allowed.
This line give the CE

Code: Select all

cout<<showpoint<<fixed<<"The treasure is located at "<<setprecision(3) 
            <<'('<<x<<','<<y<<')'<<'.'<<endl;
By other hand I think that this post would must be in C++ Forum because the trouble is the language.
by Emilio
Tue Jan 03, 2006 7:13 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182920

The input haven't only a case. You must check if x is greater than y or not. By other hand, you must reuse another post that talk about the same problem, also there are a lot of post about this problem that you can have a look and I'm almost sure that they will resolve your doubts and mistakes. Good...
by Emilio
Tue Jan 03, 2006 2:15 am
Forum: Volume 109 (10900-10999)
Topic: 10977 - Enchanted Forest
Replies: 42
Views: 17681

Code: Select all

####### 
#S##### 
#____## 
#__#__# 
#_#X#_# 
#__#_F# 
####### 
You must take into account Jigglypuff and its loudness.
Its loudness is circular.
by Emilio
Tue Jan 03, 2006 2:01 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6170

Then a precision error musn't be my error, but I thought so because I obtain correct output for all the cases of this post and for the 1000 tywok test cases, I don't encounter the wretched boundary case :(
by Emilio
Mon Jan 02, 2006 3:53 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6170

Thanks tywok!
I also get the correct output for your last case.
I clearly think is a precision error.
I'll try later another time. :(
by Emilio
Sun Jan 01, 2006 6:26 am
Forum: Volume 109 (10900-10999)
Topic: 10912 - Simple Minded Hashing
Replies: 24
Views: 14864

Yeah!
by Emilio
Sun Jan 01, 2006 6:05 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6170

I get the correct output for all the cases of this board, and for your (tywok) 1000 test cases too.
I think that maybe is a precision error.
Thanks to all anyway but I'm desperate!
Any special case?
by Emilio
Sat Dec 31, 2005 9:00 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6170

Yeah, I also check if they are colinear.
by Emilio
Sat Dec 31, 2005 3:17 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6170

Hello there! I'm getting WA but get correct output for all the sample input in this board and a lot of made by hand. Are there any tricky cases? My approach is make a set with all the points of the input segments and all the points of the segment intersection of all the input segments, then make all...
by Emilio
Thu Dec 29, 2005 11:17 pm
Forum: Volume 109 (10900-10999)
Topic: 10914 - Abundance and Perfect Numbers
Replies: 20
Views: 8484

I thought 10^8 was a typo :D
But really is strange that MLE, how you say would must be RE.
Maybe I'll test the judge behaviour with a similar case, but now I'm lazy too :wink: .

Go to advanced search