Search found 3 matches

Sun Aug 23, 2009 3:28 pm
Forum: Volume 101 (10100-10199)
Topic: 10167 - Birthday Cake
Replies: 16
Views: 7619

Re: 10167 - Birthday Cake

Here is my code that uses the random method, but it is slow and cann't get an AC. Needs some help. Thanks. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int N; struct Point { int x,y; }; Point p[100]; void Process() { int A,B; srand ( time(NULL) ); while (true) { A = r...
Sat Apr 25, 2009 11:51 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 68738

Re: 102, WA. Help me.

Hi,What's wrong with my code? I have got lots of WAs ,frustrated. It seems the algo is right. #include <iostream> #include <map> using namespace std; long long Color[3][3]; long long SumColor[3]; map<int ,char> M; bool ColorUsed[3]; int BinColor[3]; //output int MinBinColor[3]; long long MinMove; vo...
Sat Jul 19, 2008 3:56 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 55507

Re: 10267 - Graphical Editor

I was really screwed up when i got WAs over and over, plz some help me. thanks. #include <iostream> #include <sstream> #include <string> using namespace std; int flood(char pc[][250],int x , int y , char color , char old_color,int m,int n); int main() { string s,name; int n;//row int m;//column char...

Go to advanced search