If you want a small sampling of intercollegiate national contest problems, here's some:
http://people.deas.harvard.edu/%7Ehc3/open/
If you want a small sampling of intercollegiate national contest problems, here's some:
http://people.deas.harvard.edu/%7Ehc3/open/
howdy,
am i the only one that thinks some of these problems are obscene.
maybe it's my lack of programming knowledge but i wouldn't have the foggiest idea how to even start.
M.R.
I don't like you very much. Please post a lot less.
Cheez
*and then*
No, I know you were joking. My point still stands.
that page doesn't make any sense¿?! My head now hurts.
Now lose 1 IQ point from reading this post.
The key to solving most of these problems is to abstract them.
Take the warriors.txt problem. They give a fairly complicated
function to calculate the probability given i, j. All that
matters is that you can code that function onto a computer.
So what you could do is put the values of all the probabilities in
an array P[n][n]. The expected number of
victories of a fight between
fighters i from K, j from KK is just the probability P[i][j].
Also you know that the total expected number of victories
is the sum of the individual expectations. Once taken
these steps the problem is not so hard. You could
come up with a brute force method or use dynamic programming.
They're all pretty simple, you people are wusses! Grow some man-balls!
howdy,
WOW PooP your coolwhen i grow up i want to be just like you.
M.R>
I don't like you very much. Please post a lot less.
Cheez
*and then*
No, I know you were joking. My point still stands.
To accomplish that, smash a hammer under you armpit,Originally posted by itld
WOW PooP your coolwhen i grow up i want to be just like you.
and against the rest of your boddy.
This one is quite easy:
http://people.deas.harvard.edu/%7Ehc...pt/encrypt.txt
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
I was thinking about doing this one. It looks doable.
[The negative voices in my head start talking again.]What's that you say? I'm a whimp for wanting to do an easy one? Well, screw you then. I'm just learning C++ mostly on my own, so I'm lucky I can code a solution to anything.[/They leave me alone.]
I have one question before I start coding away. What does this mean?
I'd really like to know the answer to this as it is the only thing standing between me and a coded out solution to that problem. Thanks in advance for your helpThe input ends with an end of file.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
hehehehe! poop!Originally posted by itld
howdy,
WOW PooP your coolwhen i grow up i want to be just like you.
M.R>
(i'm an American, what else did you expect?)
too late, I already coded it. I'm on my school's computer, but I'll post it when I'm home.Originally posted by joshdick
I was thinking about doing this one. It looks doable.
[The negative voices in my head start talking again.]What's that you say? I'm a whimp for wanting to do an easy one? Well, screw you then. I'm just learning C++ mostly on my own, so I'm lucky I can code a solution to anything.[/They leave me alone.]
I have one question before I start coding away. What does this mean?
I'd really like to know the answer to this as it is the only thing standing between me and a coded out solution to that problem. Thanks in advance for your help
end of file, or .eof is usually when you input a text file:
such as:
while(ostream != textfile.eof())
something like that, but anyways, I'm guessing they want you to input the strings from a text file.
excuse me, in this case- istreamOriginally posted by terrance1
end of file, or .eof is usually when you input a text file:
such as:
while(ostream != textfile.eof())
something like that, but anyways, I'm guessing they want you to input the strings from a text file.
There's some key combination on DOS (in unix there's a different key combo to do it) which allows you to plonk an EOF into stdin
It's CTRL-K or something
CTRL-Z windows, mac but your not suppose to be using a mac.
CTRL-D unix