Skip to content

Commit a46b145

Browse files
committed
srm 525 div 1 300
1 parent ff2f380 commit a46b145

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

DropCoins.cpp

+1-12
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,7 @@ class DropCoins {
1515
{
1616
int m = b.size();
1717
int n = b[0].size();
18-
vector<int> row, col, rr, cc;
19-
row.resize(m); rr.resize(m);
20-
col.resize(n); cc.resize(n);
21-
fill(row.begin(), row.end(), 0);
22-
fill(col.begin(), col.end(), 0);
23-
for(int i = 0; i < m; i++)
24-
for(int j = 0; j < n; j++){
25-
if(b[i][j] == 'o'){
26-
row[i]++;
27-
col[j]++;
28-
}
29-
}
18+
3019
int ret = 1000000;
3120
for(int l = 0; l <= n; l++)
3221
for(int r = 0; l+r<=n; r++)

0 commit comments

Comments
 (0)