### c129.00572 - Oil Deposits <!-- Put the link to this slide here so people can follow --> <!-- slide: https://hackmd.io/@sharonshau/BJ8hhGI3L --> --- --- ###### 複製以下程式碼填空(…的地方記得要改) ```typescript #include <iostream> #define M 100 using namespace std; char map[…]; int m, n; bool inrange(int x, int y){ … } //座標(i,j), 油田編號ans void oil(int x, int y, int ans){ //dd[8][2]:8個方向的位移 int d[8][2]={…}; … } int main() { while(cin>>m>>n){ if (m==0) return 0; for (int i=0; i<m; i++) cin>>map[i]; int ans=0; … }//end while return 0; } ```
{"metaMigratedAt":"2023-06-15T09:08:12.480Z","metaMigratedFrom":"YAML","title":"c129.00572 - Oil Deposits","breaks":true,"description":"View the slide with \"Slide Mode\".","slideOptions":"{\"transition\":\"slide\",\"parallaxBackgroundImage\":\"http://drive.google.com/uc?id=1ijB1pTrrFlrndh1XUmE5L8fVN4lqrabj\"}","contributors":"[{\"id\":\"43a70fac-152f-4429-8bb9-6f9271c4ae8e\",\"add\":503,\"del\":579}]"}
    290 views