I have two questions for this problem:
1. Can I jump from/to a leaves of length 0 (zero)?
2. When jumping along a straight line, can this line touch the end of another leave or not?
Example:
1
2 7 5
1 3
4 3 3 2 1
is the output
6
or
4
?
Search found 13 matches
- Wed Dec 27, 2006 8:43 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10412 - Big Big Trees
- Replies: 15
- Views: 10743
- Tue Oct 14, 2003 10:27 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10574 - Counting Rectangles
- Replies: 23
- Views: 11262
10574 - Counting Rectangles
Hi.
Can someone give me any hint how to solve this problem without receiving TIME LIMIT EXCEEDED?
I tried to sort the points (C++ QUICK SORT), first by X and then by Y coordinate, and after that run 4 for loops with breaking conditions.
Is this slow?
Can someone give me any hint how to solve this problem without receiving TIME LIMIT EXCEEDED?
I tried to sort the points (C++ QUICK SORT), first by X and then by Y coordinate, and after that run 4 for loops with breaking conditions.
Is this slow?
- Mon Aug 18, 2003 3:20 pm
- Forum: Volume 6 (600-699)
- Topic: 698 - Index
- Replies: 21
- Views: 10686
- Thu Aug 14, 2003 10:56 pm
- Forum: Volume 1 (100-199)
- Topic: 182 - Bonus Bonds
- Replies: 10
- Views: 3262
I don't understan the problem
I have the same problem.
I don't understand nothing, too.
Anyone can explain what shoul I do!!!
I don't understand nothing, too.
Anyone can explain what shoul I do!!!
- Sat Aug 09, 2003 7:08 pm
- Forum: Volume 7 (700-799)
- Topic: 776 - Monkeys in a Regular Forest
- Replies: 51
- Views: 24817
- Fri Aug 08, 2003 8:28 am
- Forum: Volume 7 (700-799)
- Topic: 785 - Grid Colouring
- Replies: 27
- Views: 18522
- Thu Aug 07, 2003 11:48 am
- Forum: Volume 3 (300-399)
- Topic: 373 - Romulan Spelling
- Replies: 10
- Views: 4410
- Fri Aug 01, 2003 12:20 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 57902
- Tue Jul 29, 2003 11:34 pm
- Forum: Volume 2 (200-299)
- Topic: 230 - Borrowers
- Replies: 10
- Views: 9764
- Tue Jul 29, 2003 8:36 am
- Forum: Volume 2 (200-299)
- Topic: 209 - Triangular Vertices
- Replies: 51
- Views: 11857
- Fri Jul 25, 2003 9:23 am
- Forum: Volume 8 (800-899)
- Topic: 815 - Flooded!
- Replies: 20
- Views: 14683
- Thu Jul 24, 2003 5:45 pm
- Forum: Volume 8 (800-899)
- Topic: 837 - Light and Transparencies
- Replies: 25
- Views: 19684
- Tue Jul 22, 2003 2:23 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31423
WA
I can't get ACCEPTED on this easy problem.
My formula is: n!/(k1!*k2!*...*km!).
Any special case?
What is output if there is a blank line (word with length 0)?
[/cpp]
My formula is: n!/(k1!*k2!*...*km!).
Any special case?
What is output if there is a blank line (word with length 0)?
[/cpp]