改版後範例輸入
2
3 1 1
4 0 0
範例輸出
1 9
5 5
Related Posts:
C129 油田數(VB版)
Dim n As Integer, m As Integer 'n列 x m格
Dim a(100, 100) As Integer … Read More
a982迷宮問題(VB版) Dim n As Integer ' n x n 方形
Dim a(100, 100) As Intege… Read More
DFS應用-1
DFS應用-1: (A)有幾處水窪?上下左右算連通 (B)最大一處有多大{1個數數}?
(C,D)改成類似踩地雷(八方)算連通
0
1
2
3
4
5
6
0
1
2
… Read More
dfs-1(vb版參考)程式碼:
Dim a(100, 100) As Integer
Dim m As Integer, n As Integer
Private Sub Form1_Load( ... ) Handles M… Read More
OX連線(VB版)
程式碼:
Dim n As Integer ' n x n
Dim a(10, 10) As Integer
Private Sub Form1_Load( . . . ) Handles … Read More
0 意見:
張貼留言