Search found 9 matches

by yellow
Mon Nov 22, 2004 8:05 pm
Forum: Off topic (General chit-chat)
Topic: Source code for reference?
Replies: 3
Views: 2124

Source code for reference?

I started solving acm problems 3 months ago, not for contest, just for fun with my friends though; and I solved about 40 of them. But I still have some thoughts that my solutions are not always good, I searched a lots to find other solutions, codes for my problem but I have no luck so far. Where do ...
by yellow
Tue Nov 16, 2004 7:07 am
Forum: Volume 1 (100-199)
Topic: 177 - Paper Folding
Replies: 28
Views: 7853

Are you sure you clearly understand what problem 177 asked for?
by yellow
Fri Oct 29, 2004 9:51 pm
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16832

yeah, i see what you mean now :D . Never know about map b4 :cry: , gotta check it out now

PS: Thank you so so much. Yeah, you really helps me out
by yellow
Thu Oct 28, 2004 3:53 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16832

Any suggestion for improvement?

here is my code, any suggestion for improvement is appreciated: #include <iostream> #include <stdlib.h> #include <vector> using namespace std; bool Search( vector<int> numProduced, int num); int main () { int Z,L,I,M; int caseNum=1; vector<int> numProduced; cin>>Z>>I>>M>>L; while(!(Z==0&&I==0&&M==0&...
by yellow
Thu Oct 28, 2004 2:32 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16832

oh yeah, i see it now, i will fix it tonite! Thanksss :D
by yellow
Thu Oct 28, 2004 1:05 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16832

maybe you want to at least push the generated random number into the vector? and try to change [cpp] while(Z!=0&&I!=0&&M!=0&&L!=0) [/cpp] to [cpp] while(!(Z==0&&I==0&&M==0&&L==0)) [/cpp] hope this helps What do you mean "maybe you want to at least push the generated random number into the vector?" ...
by yellow
Wed Oct 27, 2004 5:42 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16832

350 wrong answer-strange!

My first program for #350 assumed that cycle begins with the seed, and it was accepted! Then I modified it, add in the check funtion, and tested it successfuly on my comp. But i always get the "Wrong answer" when i submit it, please anyone can have a look at my code and tell me wher i did it wrong: ...
by yellow
Wed Oct 27, 2004 2:24 am
Forum: Volume 5 (500-599)
Topic: 576 - Haiku Review
Replies: 50
Views: 17831

Greats!!! You really help me out, thanks a lot!
by yellow
Tue Oct 26, 2004 6:59 am
Forum: Volume 5 (500-599)
Topic: 576 - Haiku Review
Replies: 50
Views: 17831

I'm confused!

Everything is okie on my VC++, but I get the compile error everytime i submit the code: #include <iostream> #include <stdio.h> using namespace std; int main() { char line[200]; int numSyl[]={5,7,5}; //array of correct number of syllables (5/7/5) cin.getline(line,'/n'); while (strcmpi(line,"e/o/i")) ...

Go to advanced search