Search found 122 matches

by Wei-Ming Chen
Thu Jul 12, 2007 4:56 pm
Forum: Volume 102 (10200-10299)
Topic: 10211 - Divisibility Testing! Wow!
Replies: 10
Views: 4580

Code: Select all

5 2
why the answer is

Code: Select all

Add all 1 
Alternate 1 change sign
not

Code: Select all

Add all 1
by Wei-Ming Chen
Thu Jul 12, 2007 10:43 am
Forum: Volume 102 (10200-10299)
Topic: 10211 - Divisibility Testing! Wow!
Replies: 10
Views: 4580

Hello, what are the outputs of

Code: Select all

10 6
5 2
Thanks
by Wei-Ming Chen
Wed Jul 11, 2007 5:21 am
Forum: Volume 112 (11200-11299)
Topic: 11230 - Annoying painting tool
Replies: 10
Views: 4245

When I looked at the problem again I realized the naive solution would pass, so I coded it. I can see how to speed it up using bitmasks, but I can't figure out how to do it in O(n*m). Any hints? Well, in my method, I didn't do the "same change" more than one time I tried to change every block to th...
by Wei-Ming Chen
Tue Jul 10, 2007 12:18 pm
Forum: Volume 112 (11200-11299)
Topic: 11232 - Cylinder
Replies: 34
Views: 15329

Oh, I wasn't notice it, I will change it right now And here are some others I/O can someone check for me again? inputs 30 35 30 36 30 37 30 38 30 39 30 40 30 41 30 42 30 43 30 44 30 45 30 46 30 47 30 48 30 49 30 50 30 51 30 52 30 53 30 54 30 55 30 56 30 57 30 58 30 59 30 60 30 61 30 62 30 63 30 64 3...
by Wei-Ming Chen
Tue Jul 10, 2007 8:54 am
Forum: Volume 112 (11200-11299)
Topic: 11232 - Cylinder
Replies: 34
Views: 15329

thanks.. but my outputs are same as yours.. I tried some other inputs, can someone check my outputs for me? input 7 8 4 52 1 47 54 69 47 52 32 78 4 55 4 77 5 86 54 100 7 89 43 55 1 63 1 25 23 44 0 0 output 22.506 50.265 0.785 12022.696 6511.038 8914.445 50.265 50.265 98.175 24725.716 269.392 6078.69...
by Wei-Ming Chen
Mon Jul 09, 2007 6:25 pm
Forum: Volume 112 (11200-11299)
Topic: 11232 - Cylinder
Replies: 34
Views: 15329

I am tired because of many WAs..

Can someone give some strickly I/O?

thanks very much..
by Wei-Ming Chen
Sun Jul 01, 2007 11:33 am
Forum: Volume 112 (11200-11299)
Topic: 11200 - Sapitaur's labyrinth
Replies: 4
Views: 2011

I have found it, a very silly mistake

when each case finished, it is necessary to delete all the marks on the board N*M

but I delete the marks on the board M*N..

thanks rio remind me to generate test cases randomly, now I found it!
by Wei-Ming Chen
Sun Jul 01, 2007 6:13 am
Forum: Volume 112 (11200-11299)
Topic: 11200 - Sapitaur's labyrinth
Replies: 4
Views: 2011

I think there is no problem with your method. Maybe some bug in you code. I also think so first. But when I ask my program to print how it works on the input 1 15 10 ////\\\////\\// /\\\\\/\/\/\\/\ \\\//\\\/\////\ //\\\/\///\//\\ \/\//\\/\\\\/\\ ////////\\///\/ \\\\\\//\\\\\/\ \\/\//////\\/// \/\\/...
by Wei-Ming Chen
Sun Jul 01, 2007 5:55 am
Forum: Volume 112 (11200-11299)
Topic: 11200 - Sapitaur's labyrinth
Replies: 4
Views: 2011

11200 - Sapitaur's labyrinth

My method is very simple. Try every entrance, if it connects to exit, then ans++ if it connects to abysm, then break, if it connects to another entrance, break and not try that entrance for example 1234 (entrance) //// \\/\ ///\ and I only try entrance 1,2,3 , because entrance 3 connects to entrance...
by Wei-Ming Chen
Mon Jan 08, 2007 3:58 pm
Forum: Volume 9 (900-999)
Topic: 996 - Find the Sequence
Replies: 5
Views: 2380

Thanks rio and little joey :D Yes, there are some extra spaces after some inputs here are some test cases 6 2 6 8 9 14 25 44 89 10 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 5 -1 -1 -1 -1 -1 -1 -1 7 2 2 2 2 2 2 2 -1 2 2 2 2 2 4 -200 100 400 700 1000 1300 4 10 90 1170 19890 417690 10442250 302825250 ...
by Wei-Ming Chen
Sun Jan 07, 2007 6:17 pm
Forum: Volume 9 (900-999)
Topic: 996 - Find the Sequence
Replies: 5
Views: 2380

996 - Find the Sequence

I had some trouble in solving this problem

Can someone who have got AC tell me the answer of the test cases?

Thanks!

Code: Select all

1 2 2 2 2 2 2 2 2
1 1 2 3 4 5 6 7
2 2 3 4 5 6 7 8
8 500 600 700 1000 1200 1489 4563 12223 -7854 1456 3254

by the way, are there any space after input lines ?
by Wei-Ming Chen
Sun Nov 26, 2006 4:56 pm
Forum: Volume 9 (900-999)
Topic: 960 - Gaussian Primes
Replies: 12
Views: 5414

Code: Select all

7
1 1
7 7
85 41
23 -45
-7 0
-13 0
62 -7

Code: Select all

P
C
C
C
P
C
C
by Wei-Ming Chen
Sun Oct 29, 2006 9:21 am
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 19859

Your output existed a space before the answer.

If the input is

Code: Select all

5
5
5
0
The output is

Code: Select all

15
But your output is

Code: Select all

 15
by Wei-Ming Chen
Wed Oct 25, 2006 5:09 pm
Forum: Volume 111 (11100-11199)
Topic: 11132 - Dice from pennies
Replies: 10
Views: 3924

some inputs and outputs 1D1 TTTTH 2D2 TTHHTT 18D19 TTTHHHHTTTHHHHTTHTTHTTTTHTTHTHTTTHTTTHTTTTTHTTHHTTHTTTTHTTTTTTTTTTHHHHHHHHHHHTT 18D5 TTTHHHHTTTHHHHTTHTTHTTTTHTTHTHTTTHTTTHTTTTTHTTHHTTHTTTTHTTTTTTTTTTHHHHHHHHHHHTT 18D3 TTTHHHHTTTHHHHTTHTTHTTTTHTTHTHTTTHTTTHTTTTTHTTHHTTHTTTTHTTTTTTTTTTHHHHHHHHHHHTT...
by Wei-Ming Chen
Tue Oct 10, 2006 5:32 pm
Forum: Volume 111 (11100-11199)
Topic: 11111 - Generalized Matrioshkas
Replies: 19
Views: 10884

Code: Select all

-200 -180 -50 50 -60 60 -69 -50 -40 40 50 -11 11 69 180 200
-3 -1 1 -1 1 3
-3 -1 -1 1 1 3
-50 -20 20 -15 15
-8 7 -7 8
-60 -55 -53 -6 6 -12 12 -40 40 53 55 60 

Code: Select all

:-) Matrioshka!
:-) Matrioshka!
:-( Try again.
:-( Try again.
:-( Try again.
:-( Try again.
Hope it helps.

Go to advanced search