Search found 137 matches

by C8H10N4O2
Tue Jun 11, 2002 3:03 pm
Forum: Other words
Topic: Problem with MS Visual C++?
Replies: 3
Views: 1994

Personally, I think it is poor coding style to declare variables inside the body of code. It is much better convention to declare all your variables once and then initalize when needed. From what I know, there is NO way to disable that. Visual C++ is nonstandard in many ways. (e.g. No min/max functi...
by C8H10N4O2
Tue Jun 11, 2002 3:00 pm
Forum: Other words
Topic: Provide resource for exhaustive BFS algorithm
Replies: 8
Views: 4405

Yes, the BFS can be used to find the shortest path in a weight graph. However, if the graph contains no negative edges, it is probably easier and more efficient to consider using Floyd-Warshall. BFS on a weight graph is basically. Start at a vertex. Are any of the vertices connected to this one the ...
by C8H10N4O2
Tue Jun 11, 2002 11:46 am
Forum: Other words
Topic: New: Submit-o-matic
Replies: 23
Views: 6008

Adrian's right...:) Also, please add a location for the "comment" field.
by C8H10N4O2
Tue Jun 11, 2002 11:41 am
Forum: Other words
Topic: Forum for CIII
Replies: 8
Views: 3417

Forum for CIII

Please make a forum for the 103XX series problems! Thanks:)
by C8H10N4O2
Tue Jun 11, 2002 9:21 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 17039

This entire problem is just one math equation. If I tell you the equation, then there is NO problem:p But here's a hint, think about logarithms...
by C8H10N4O2
Tue Jun 11, 2002 9:16 am
Forum: General
Topic: Shall I do the problem serial
Replies: 4
Views: 2470

Here's my personal experience. Serial does not work. If you are new, look for problems that you can solve. I just read the description of many of the problems and tried to consider whether I understood it or now. High success rate AND high submission rate makes a problem easy. But have a low success...
by C8H10N4O2
Tue Jun 11, 2002 9:13 am
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5432

You pinpointed the 2 exact mistakes. I was counting flushes and straights together and thus 2H 3H 4H 5H 7H 2S 3D 4S 5D 6S was being counted as a straight flush. Also, apparently your first rule was also correct. Only 10-A are counted as a straight flush. Go figure:p
by C8H10N4O2
Tue Jun 11, 2002 9:11 am
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2606

That's certain a part of it. Think about how many layers you can have and then how many pipes in each layer.
by C8H10N4O2
Tue Jun 11, 2002 2:25 am
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5432

Thank you!

I am both a horrible programmer and a horrible card player at the same time:)
by C8H10N4O2
Mon Jun 10, 2002 10:58 pm
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5432

Stefan Pochmann...take a break from TC and come help:)
by C8H10N4O2
Mon Jun 10, 2002 10:45 pm
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2606

There is no clever 'formula'. This is a simple intuition problem.
by C8H10N4O2
Thu Jun 06, 2002 11:42 pm
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5432

131 The Psychic Poker Player

Please help! I don't know poker well. Can someone tell me why this WAs? [cpp] #include <cstdio> #include <cstdlib> #include <vector> #include <algorithm> using namespace std; void main() { char SB[100]; int i,j,k; vector<vector<char> > Cards(10,vector<char>(2,' ')); vector<vector<char> > Hand; vecto...
by C8H10N4O2
Mon May 06, 2002 9:48 pm
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 5517

Thanks, I will look into it:)
by C8H10N4O2
Wed May 01, 2002 1:00 pm
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 9594

scanf is the paradigm of all input routines. I wish someone would take the time and implement format strings for streams:)
by C8H10N4O2
Tue Apr 30, 2002 8:54 pm
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 5517

123 Searching Quickly

Does anyone know of any special cases? My code works for the example case but gives me WA. [cpp] #pragma warning (disable:4786) #include <cstdio> #include <vector> #include <string> #include <map> #include <algorithm> #include <cctype> #include <cstring> using namespace std; void main() { char B[100...

Go to advanced search