Search found 6 matches

by Anderson
Tue May 28, 2002 3:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10237 - Bishops
Replies: 7
Views: 4965

If you consider the problem ,which is about Root instead of Bishop,
maybe it is easy.
now ,you could rotate the board by 45 degrees , then youn could consider the Bishop like a Root.
Good lucK!!
by Anderson
Tue May 28, 2002 3:06 pm
Forum: Volume 102 (10200-10299)
Topic: 10240 - The n-Dimensional Cities
Replies: 10
Views: 5848

About My program :

my program is as follows , can u tell me where my bug is? thanx again! [cpp] // @begin_of_source_code #include <iostream.h> #include <math.h> #include <iomanip.h> #include <fstream.h> ifstream fin("10240.in"); int dis[10005]; int dim,dist,d; double length; void main() { dis[1] = 0; dis[2] = 1; dis[3...
by Anderson
Mon May 27, 2002 8:01 pm
Forum: Volume 102 (10200-10299)
Topic: 10240 - The n-Dimensional Cities
Replies: 10
Views: 5848

10240 - The n-Dimensional Cities

I find the following regularity: Dimension : 1 2 3 4 5 6 7 8 9 ....... Segment No : 1 2 4 5 9 10 16 17 25 ....... So I guess a formula, which make out the segment number,when the dimension is given. But , I got W.A. Is there any mistakes in my guess? or there are some pitfalls that I didn't pay any ...
by Anderson
Mon Apr 29, 2002 10:50 am
Forum: Volume 100 (10000-10099)
Topic: 10058 - Jimmi's Riddles
Replies: 22
Views: 6436

Try these test cases

tom hates jerry ,, jimmy hates tom
jimmy
a hate
jimmy hates tom ,
jimmy hate
tom hates jerry , jimmy hates tom
hates
jimmy hates tom
hate hate hate
by Anderson
Fri Apr 19, 2002 11:27 am
Forum: Volume 100 (10000-10099)
Topic: 10089 - Repackaging
Replies: 41
Views: 14677

10089 - Repackaging

Could you point out the bugs or give me some test cases? thank you! the program is as follows: [cpp]#include <iostream.h> #include <fstream.h> ifstream fin("10089.in"); int a[1001],b[1001],c[1001]; int A[1001],B[1001]; int t1[1001],t2[1001]; int n; bool get() { int i; for (i=1;i<=n;i++) { A = a -b ;...
by Anderson
Fri Apr 19, 2002 2:43 am
Forum: Volume 5 (500-599)
Topic: 501 - Black Box
Replies: 35
Views: 16176

501 - Black Box

bacause I `m afraid my program will get Time Exceed!

Go to advanced search