算法问题实战策略 FENCE
2021-10-01 15:21
标签:include gif name names || close for ret 方法 地址 https://algospot.com/judge/problem/read/FENCE 开始考虑暴力遍历 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 int n; 9 int m; 10 11 vector h; 12 13 int func() 14 { 15 int ret = 0; 16 17 for (int i = 0; i > n; 31 32 while (n--) { 33 h.clear(); 34 m = 0; 35 cin >> m; 36 37 for (int i = 0; i > t; 40 h.push_back(t); 41 } 42 43 cout m; 44 for (int i = 0; i > t; 47 h.push_back(t); 48 } 49 50 cout