[理工] 成大105 資演 第一題

看板Grad-ProbAsk作者 (KAIKAIKAI)時間9年前 (2017/01/24 01:31), 9年前編輯推噓0(006)
留言6則, 2人參與, 最新討論串1/1
如題 小弟資質可能沒這麼好 想請大大給一點提示http://i.imgur.com/OJWdYVq.jpg
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.227.227.95 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1485192707.A.318.html

01/24 01:34, , 1F

01/24 01:35, , 2F
前面沒拍好 附上正面圖片
01/24 01:35, 2F

01/24 07:45, , 3F
應該有很多種寫法,我寫的思路是:
01/24 07:45, 3F

01/24 07:46, , 4F
與A相鄰一堆點中,與B相鄰的就是AB的common friend
01/24 07:46, 4F

01/24 07:47, , 5F
阿就測試與A相鄰的點中,發現跟B相鄰就count++,然後
01/24 07:47, 5F

01/24 07:47, , 6F
return count
01/24 07:47, 6F
感謝 ※ 編輯: as23041248 (1.173.254.15), 01/24/2017 10:52:17
文章代碼(AID): #1OXZu3CO (Grad-ProbAsk)