2012年3月9日 星期五

[USACO] sec2-1_Hamming_Codes

sec2-1結束囉~

研究A* 研究到頭暈目眩 想說解題USACO

DFS題 + 位元運算

手感不錯 又是一次過

繼續前進吧~~~

USER: Lee Pu [leepupu1]
TASK: hamming
LANG: C++

Compiling...
Compile: OK

Executing...
   Test 1: TEST OK [0.000 secs, 3176 KB]
   Test 2: TEST OK [0.000 secs, 3176 KB]
   Test 3: TEST OK [0.000 secs, 3176 KB]
   Test 4: TEST OK [0.000 secs, 3176 KB]
   Test 5: TEST OK [0.000 secs, 3176 KB]
   Test 6: TEST OK [0.000 secs, 3176 KB]
   Test 7: TEST OK [0.000 secs, 3176 KB]
   Test 8: TEST OK [0.011 secs, 3176 KB]
   Test 9: TEST OK [0.000 secs, 3176 KB]
   Test 10: TEST OK [0.000 secs, 3176 KB]
   Test 11: TEST OK [0.000 secs, 3176 KB]

All tests OK.
YOUR PROGRAM ('hamming') WORKED FIRST TIME!  That's fantastic
-- and a rare thing.  Please accept these special automated
congratulations.
Here are the test data inputs:
------- test 1 ----
16 7 3
------- test 2 ----
2 7 7
------- test 3 ----
3 6 4
------- test 4 ----
5 5 1
------- test 5 ----
10 8 4
------- test 6 ----
20 6 2
------- test 7 ----
32 5 1
------- test 8 ----
50 8 2
------- test 9 ----
60 7 2
------- test 10 ----
16 8 3
------- test 11 ----
15 8 4
Keep up the good work!
Thanks for your submission!


The Code

沒有留言:

張貼留言