Search found 454 matches

by ..
Tue Oct 18, 2005 5:00 pm
Forum: Volume 8 (800-899)
Topic: 854 - Worse Code
Replies: 9
Views: 6067

OK~~ :wink:
by ..
Tue Oct 18, 2005 3:24 pm
Forum: Volume 8 (800-899)
Topic: 854 - Worse Code
Replies: 9
Views: 6067

Thanks for the reply, I get AC by specially handle the last case as you say. :)
by ..
Mon Oct 17, 2005 6:14 pm
Forum: Volume 8 (800-899)
Topic: 854 - Worse Code
Replies: 9
Views: 6067

854 - Worse Code

To the problem data setter(I guess littlejoey will answer me :)) 1. A setence is terminated with a blank line or EOF. "blank line" means a line with no char, right? 2. Any char except letters and space are IGNORED. What does this mean? For example, ! . How should I handle this setence? 1. it has 2 n...
by ..
Sun Sep 25, 2005 6:23 pm
Forum: Volume 8 (800-899)
Topic: 891 - Syntrax
Replies: 3
Views: 3114

Thanks, actually I can get the answer by assertion in my program.
Just want to confirm everything as I am getting WA, where I think this is an easy problem.
by ..
Sun Sep 25, 2005 3:42 pm
Forum: Volume 8 (800-899)
Topic: 891 - Syntrax
Replies: 3
Views: 3114

891 - Syntrax

In this question, we have the rule as shown: expression :: sequence | alternatives | repetition | terminal sequence :: ( ws expression expression ) ws alternatives :: { ws expression expression } ws repetition :: [ ws expression ] ws terminal :: " character* " ws ws :: (<space> | <tab>)* character :...
by ..
Sun Sep 25, 2005 11:06 am
Forum: Volume 8 (800-899)
Topic: 813 - Robot
Replies: 5
Views: 2922

Thanks avm.
I was busy since your last reply.
Now have time to find the bug based on your output, thanks a lot :)
by ..
Sat Sep 10, 2005 4:52 pm
Forum: Algorithms
Topic: Isomorfics graphs
Replies: 3
Views: 1360

Graph isomorphism of 2 general graphs is a famous open problem.
It is not known if this problem in P or not.
http://mathworld.wolfram.com/IsomorphicGraphs.html
by ..
Fri Sep 02, 2005 8:49 pm
Forum: Other words
Topic: precion problem float Vs double
Replies: 5
Views: 1381

Re: precion problem float Vs double

Hi, I declare my variables with 'long double' to hold the real numbers, because that's the most accurate method to represent them. However, even with 'long double' sometimes I'll get a number that is 1.238382e-30. Which is ridiculously close to zero. It should've just printed out zero, Do you know ...
by ..
Sun Jun 19, 2005 3:16 pm
Forum: Volume 108 (10800-10899)
Topic: 10868 - Bungee Jumping
Replies: 13
Views: 4660

The problem can be also solved by simulation. The physics you'd need for this is pretty elementary. Simulation...Do you mean simutle the Bungee Jumping by small time interval continously??? I think it is too dangerous to consider the precision. For your view, that is pretty elementary. But for some...
by ..
Sun Jun 19, 2005 11:18 am
Forum: Volume 108 (10800-10899)
Topic: 10868 - Bungee Jumping
Replies: 13
Views: 4660

I just finished this question, but I don't like that so much: 1. It requires too much physics knowledge, at least to me. I need to search the formula of spring energy to solve it. (I have learned that before but forget it for long time) 2. Under the problem statement, the body weight w may be zero. ...
by ..
Tue May 10, 2005 6:07 am
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 14840

I think the problem statement is so clearly written, as it doesn't give insturction to reject trailing space after second instruction. If there are no words asking me to reject it, I assume it should be accepted. Also, it is not clear what we should do if the length of string is zero.(In my AC progr...
by ..
Sat May 07, 2005 4:30 pm
Forum: Algorithms
Topic: SOS , tell me the algorithm , thanks
Replies: 2
Views: 974

If you want a fast solution, you can try some probabilistic algorithm, read the following sites:
http://mathworld.wolfram.com/PrimalityTest.html
http://mathworld.wolfram.com/PollardRho ... ethod.html
by ..
Mon May 02, 2005 8:14 am
Forum: Volume 105 (10500-10599)
Topic: 10512 - A Day in Math-land
Replies: 52
Views: 12886

Case 1:
1 -1
Case 2:
Impossible.
by ..
Tue Apr 26, 2005 7:00 pm
Forum: Other words
Topic: Problem with submit the code
Replies: 2
Views: 930

Here you can modify your setting to receive a email at every submission, then you can get back the error message during complie:
http://acm.uva.es/cgi-bin/OnlineJudge?UsersMgr:EditUser
by ..
Sun Apr 24, 2005 10:51 am
Forum: Algorithms
Topic: PIE Problems
Replies: 2
Views: 951

10712
10458
10542

Go to advanced search