Search found 145 matches

by Julien Cornebise
Sat Aug 30, 2003 5:29 pm
Forum: Volume 5 (500-599)
Topic: 531 - Compromise
Replies: 73
Views: 25484

Well, it's been a while, but I've just been struggling with this one and finaly got AC(P.E.). Never trust the judges in following the problem description. They are more concerned in stabbing you from behind then testing your programming skills... :evil: I'm more and more disapointed by tricky input...
by Julien Cornebise
Sat Aug 30, 2003 3:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 20805

little joey wrote:Hi hi.
We were writing our postings at the same time! Julien and I said exactly the same thing.
:lol: :wink:
by Julien Cornebise
Sat Aug 30, 2003 3:25 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 20805

THANK YOU VERY MUCH Maxim !! :D I finally got AC, thanks to your advice. I perfectly understand what you mean, given that I already used that LCS algo some time ago for another problem. The trouble was that I thought here that longest MATCH meant longest RUN, not longest SUBSEQUENCE : for me we were...
by Julien Cornebise
Sat Aug 30, 2003 1:22 am
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 20805

Hello I'm having WA for this problem, and after having rewrote it from scratch twice, and read the whole forum. So I'm now going to an extremity I never used before : posting my algorithm and my whole source here, hoping that someone we'll help me ;) The algo is simple : DP with a table l [j] where ...
by Julien Cornebise
Wed Aug 27, 2003 9:25 am
Forum: C++
Topic: math library
Replies: 31
Views: 9305

Okay. Given that I'm quite new to C++ after having been a C programmer for years, if the trick is too linked with the C++ specific headers, I'll be of little help - though I'll try anyway of course :) But it doesn't seem so weird to me that you have to manually include cmath (if I understood your po...
by Julien Cornebise
Tue Aug 26, 2003 10:28 pm
Forum: Java
Topic: speed of java and c++
Replies: 20
Views: 9016

Yeah,it's so much clear that you are a damm crazy talker.... You cannot able to understand your own post.But I am not trying to hurt anybody,if somebody feel bad I am sorry for that. Really,its a crazy situation for me,not only I am,everyone say that damm JAVA is not fast than your c++.But what do ...
by Julien Cornebise
Tue Aug 26, 2003 10:10 pm
Forum: C++
Topic: math library
Replies: 31
Views: 9305

Hi Did you use either [cpp]#include <math.h>[/cpp] or [cpp]#include <cmath>[/cpp] ? I guess the easiest thing would be that you mail me your code (on the forum here, or by mail : cornebis at esiea.fr), I'll check it out. I think you might forget to include a header definition. PS : don't worry about...
by Julien Cornebise
Mon Aug 25, 2003 6:43 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35899

Hi ezra and xbeanx I have finally rewritten my source from scratch, now doing it from right to left, as you did in your code Greg, and I got AC too. I'm still wondering why my Left to right failed (given that I stored the path and compared it lexicographically every time...).... Anyway, must be a du...
by Julien Cornebise
Mon Aug 25, 2003 1:01 am
Forum: C++
Topic: math library
Replies: 31
Views: 9305

okay, that's thanks to C++ and its allowance for method overloading (same name, different parameters types) and its resolution method. This problem doesn't arise in C, and given that I'm new to C++ (but long time C programmer) I forgot that little detail :oops: :lol:
by Julien Cornebise
Sun Aug 24, 2003 9:08 pm
Forum: General
Topic: Never use yahoomail for submission
Replies: 6
Views: 1746

A really great way to submit (the best one in my opinion, and definitely the fastest), if you're using windows, is the CD-Man's progam (see main acm.uva.es/p/ page). It really rocks !! A simple click and you're done. Thanks to the author !
by Julien Cornebise
Sun Aug 24, 2003 7:47 pm
Forum: C++
Topic: math library
Replies: 31
Views: 9305

I know - my remark was adressed to Moni. He, not you, used acos(0). BTW - I think it should be here acos(0.0), otherwise the code may not compile (I don't know, I haven't checked, but that's a common problem with funtions from math library). Hi Under gcc, it does compile, it implicitely converts fr...
by Julien Cornebise
Sun Aug 24, 2003 6:28 pm
Forum: C++
Topic: math library
Replies: 31
Views: 9305

That's what was of course implied in my answer.
Eitherway, it doesn't hurt to precise it explicitely.
by Julien Cornebise
Sun Aug 24, 2003 6:26 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66828

Well, don't care too much about PE, if adding or taking off a newline doesn't solve it. It might be that the judge output has itself a PE compared to the theorical output (it already happened) :)
by Julien Cornebise
Sun Aug 24, 2003 10:53 am
Forum: C++
Topic: math library
Replies: 31
Views: 9305

M_PI hasn't been removed, if you look in math.h you'll see that it's definition is encapsuled in a [c]#if defined __USE_BSD || defined __USE_XOPEN[/c], meangin that it is only avalaible in sources using BSD or XOPEN extensions (wich is the default for gcc). It also implies that it is not part of the...
by Julien Cornebise
Sun Aug 24, 2003 12:52 am
Forum: Volume 102 (10200-10299)
Topic: 10278 - Fire Station
Replies: 59
Views: 20760

Hello I'm having problems with this very problem. I've got a Time Limit Exceed. After having tested around, I found that it was my floyd algorithm who was too long (no TLE because of infinte loop in input parsing, nothing of the kind). I'm doing floyd on the whole graph (where the vertices are the i...

Go to advanced search