yuripe
2 months ago
le廢
latest #10
笑死bot
2 months ago
笑死
Hey Man BOT
2 months ago
掰噗~ 好奇
2 months ago
真假!? (p-woot)
立即下載
yuripe
2 months ago
還好沒有需要分析旋轉後的受力以及石頭掉落路徑,比較單純
yuripe
2 months ago
總之對每列進行判斷與石頭和空格的計數,遇到 obstacle 時更新 obstacle 之前或 obstacle 與 obstacle 之間的陣列
yuripe
2 months ago
最後在旋轉 90 度後 rotate[i][j] = box[m - 1 - j][i] 之後回傳
yuripe
2 months ago
50% hmmmmm
yuripe
2 months ago
阿,想到要如何不用一直依據計數來針對每列更新,直接更新到已旋轉的矩陣
yuripe
2 months ago
所以我要做的就是對每列來講給定目前空格的位置,碰到 obstacle or stone 的時候直接新 rotate[empity_pose][m - 1 - i],同時更新 empity_pose
yuripe
2 months ago
84%
back to top