摘要: 元素选择器 記錄一下父節點,暴力往上面找 注意下標 i,j要分清楚!!! #include <iostream> #include <cstdio> #include <cstring> #include <string> #include<vector> using namespace std; 阅读全文
posted @ 2019-11-23 17:49 liulex 阅读(147) 评论(0) 推荐(0) 编辑
摘要: CIDR合并 如何判斷包含關係 把需要截取的部分用&運算獲取出來 然後判斷相同位置截取的結果是否相同,相同就是有包含關係 最後一個元素:ans[ans.end()-1] #include <iostream> #include <algorithm> using namespace std; str 阅读全文
posted @ 2019-11-23 16:03 liulex 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 字符画 通過樣例猜題意系列 注意讀題:每輸出完一行需要恢復背景色 這題用cout瘋狂爆零什麽鬼 #include <iostream> #include <string> #include <cstdio> using namespace std; int A[2004][2003][3]; int 阅读全文
posted @ 2019-11-23 13:41 liulex 阅读(334) 评论(0) 推荐(0) 编辑