in case input is (x 1)
x must be powers of 2
so
this inputs are invalid
100 1
1000 1
10000 1
Search found 2 matches
- Mon Dec 07, 2009 12:18 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55762
- Sat Dec 05, 2009 3:07 am
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 52001
Re: 105 - The Skyline Problem
some test case
inp:
1 5 10
10 5 20
10 4 30
out:
1 5 20 4 30 0
inp:
1 5 10
2 7 10
10 5 20
10 4 30
out:
1 5 2 7 10 5 20 4 30 0
inp:
1 5 10
10 5 20
10 4 30
out:
1 5 20 4 30 0
inp:
1 5 10
2 7 10
10 5 20
10 4 30
out:
1 5 2 7 10 5 20 4 30 0