Search found 13 matches

by morris821028
Wed Mar 04, 2015 11:33 am
Forum: Volume 110 (11000-11099)
Topic: 11013 - Get Straight
Replies: 12
Views: 4450

Re: 11013 - Get Straight

my program detect some invalid format in test data. the card maybe have a duplicate. like this, 4H 4H 5H 3H 3H Can someone explain this ? Some Input: 4H 4C 5H 3H 3C 3H 4C TH 3C 4H 6C 8D TD 6H TH 6H 5H KS 4D 6D KS QH AS 7D TD 2C AC 9H 6D JH 7H 2H 3H 5S 3D 4H 3H QS JC 7S 4C 7D 2C 5H KC KH 3C 4H 3S QH ...
by morris821028
Sat Feb 28, 2015 7:09 am
Forum: Volume 122 (12200-12299)
Topic: 12296 - Pieces and Discs
Replies: 0
Views: 780

Re: 12296 - Pieces and Discs

Some I/O 2 2 10 10 0 4 10 4 4 0 4 10 2 4 2 4 4 1 2 1 10 10 0 0 10 10 10 0 0 10 1 1 1 4 2 10 10 0 4 10 4 1 0 7 10 5 10 10 1 2 10 6 0 3 7 3 5 5 5 3 3 10 10 0 4 10 4 1 0 7 10 5 10 10 1 6 3 2 5 4 1 7 2 2 3 3 10 10 0 4 10 4 1 0 7 10 4 10 10 1 6 3 2 5 4 1 7 2 2 1 1 10 10 0 0 10 0 5 5 5 3 2 10 10 0 4 10 4 ...
by morris821028
Mon Feb 16, 2015 3:58 am
Forum: Volume 16 (1600-1699)
Topic: 1687 - Slicing Tree
Replies: 0
Views: 810

Re: 1687 - Slicing Tree

give some I/O Input 9999 5 1 5 4 2 3 3 1 3 5 4 2 1 V 3 5 H 4 V H 6 4 2 5 7 7 2 4 4 1 4 5 3 2 3 H 1 5 V 6 4 H V V 12 2 5 4 3 4 2 5 3 2 4 3 1 2 6 1 4 4 2 4 5 7 8 3 5 1 2 H 3 4 H V 5 6 V H 7 8 H 9 10 H V 11 12 V H V 3 2 2 3 1 4 2 3 1 2 H V 24 5 7 1 3 4 7 3 2 2 8 1 1 5 8 1 2 4 4 3 2 7 8 1 1 5 4 1 2 4 4 ...
by morris821028
Thu Dec 18, 2014 6:26 am
Forum: Volume 106 (10600-10699)
Topic: 10628 - Quadrills
Replies: 0
Views: 583

Re: 10628 - Quadrills

Sample Input : 1 .XXXXXX..... .XXXXXX..... XXXXXXXX.... XXXXXXXX.... .XXXXXX..... .XXXXXX..... XXXXXXXX.... XXXXXXXX.... Why not following placement exists different quadrilles ? - 0 0 3 3 4 4 - - - - - - - - - - 0 0 3 3 4 4 - - - - - - - - - 1 1 2 2 0 0 5 5 - - - - - - - - 1 1 2 2 0 0 5 5 - - - - -...
by morris821028
Tue Oct 28, 2014 12:09 pm
Forum: Volume 128 (12800-12899)
Topic: 12831 - Bob the Builder
Replies: 3
Views: 745

Re: 12831 - Bob the Builder

In the second case, why not the result is 2 ? {8, 20} ----- 8 + 8 = 16 (time 1) 20 + 4 = 24 (time 1) {8, 16, 20, 24} ----- 16 + 16 = 32 (time 2) 20 + 16 = 36 (time 2) 24 + 16 = 40 (time 2) ----- {8, 16, 20, 24, 32, 36, 40} I hate this login page. I always fail on it. Finally, I don't know how to log...
by morris821028
Thu Aug 22, 2013 12:14 pm
Forum: Volume 10 (1000-1099)
Topic: 1052 - Bit Compressor
Replies: 7
Views: 5229

1052 - Bit Compressor

My AC input & output 32 27 10000010011110011 3 3 11 2 2 11 2 1 10 15 9 0110000100100 11 7 0101010011 2 1 01 9 3 00011000 15 5 100010000001000 12 4 101000010100 20 10 110100000010011010 13 7 011001001000 18 8 100101001000010000 14 4 10101000000001 0 0 Case #1: NO Case #2: YES Case #3: YES Case #4: YE...
by morris821028
Thu Aug 01, 2013 5:11 pm
Forum: Volume 116 (11600-11699)
Topic: 11695 - Flight Planning
Replies: 1
Views: 1519

Re: 11695 - Flight Planning

by Dynamic programming in O(n). I also spend a lot of time solving this problem. Finally, I think that maybe this problem same as uva 10459 - The Tree Root. But it is more difficult than uva 10459. I find some people that solved by brute-force. 1) find a edge on longest path 2) using the algorithm f...
by morris821028
Tue Jul 30, 2013 1:24 pm
Forum: Volume 3 (300-399)
Topic: 322 - Ships
Replies: 1
Views: 1746

322 - Ships

Input: 10 10 ........oo oooooxoooo oxooxxxo.. xxoooooo.. xoooxooo.x ooxxxxoooo oooooxxoox ooooooxoox ooooooooxx oooooooooo 10 10 .........o oooooxoooo oxooxxxo.. xxoooooo.. xoooxooo.x ooxxxxoooo oooooxxoox ooooooxoox ooooooooxx oooooooooo 10 10 ........oo oooooxoooo oxooxxx... xxoooooo.. xoooxooo.x ...
by morris821028
Sat Jul 27, 2013 6:53 pm
Forum: Volume 8 (800-899)
Topic: 859 - Chinese Checkers
Replies: 14
Views: 6434

Re: 859 - Chinese Checkers

but my AC output:

Code: Select all

12 19 1
11 18 1
11 20 1


97 18 1




5 7 1
4 6 1
4 8 1

40 1 1
39 2 1


I have confused about "6 9 1".
because (5, 8) not exist, "jump over one other piece" ?
by morris821028
Fri Apr 26, 2013 4:14 am
Forum: Volume 120 (12000-12099)
Topic: 12064 - Count the Points Inside
Replies: 2
Views: 853

Re: 12064 - Count the Points Inside

Accepted ...
each query O(logn)
by morris821028
Thu Apr 04, 2013 9:41 am
Forum: Volume 3 (300-399)
Topic: 316 - Stars
Replies: 13
Views: 3466

Re: 316 Star. keep WA

tricky input: 1 1 1 1 4 1 Point 7 8 2 Line 1 4 3 9 3 Triangulum 1 1 3 1 2 4 4 Cancer 1 3 4 3 6 1 7 5 tricky output: Map #1 Point occurs 1 time(s) in the map. Brightest occurrence: (1,1) Line occurs 0 time(s) in the map. Triangulum occurs 0 time(s) in the map. Cancer occurs 0 time(s) in the map. -----
by morris821028
Sat Mar 16, 2013 11:34 am
Forum: Volume 103 (10300-10399)
Topic: 10348 - Submarines
Replies: 1
Views: 1901

Re: 10348 - Submarines

Input:
1
1 3 5 3
1
8
0 0
0 4
2 4
2 2
4 2
4 4
6 4
6 0
Output:
Submarine 1 is partially on land.
????????????????
by morris821028
Thu Dec 06, 2012 4:11 pm
Forum: Volume 125 (12500-12599)
Topic: 12575 - Sin Cos Problem
Replies: 3
Views: 1209

Re: 12575 - Sin Cos Problem

A = 0 B = 0
should output
0.00 0.00

atan(A/B) will happen error.
maybe use atan2()

???????

Go to advanced search