摘要: 1 #include 2 3 using namespace std; 4 5 const int maxn = 200; 6 char g[maxn+3][maxn+3]; 7 int idx[maxn][maxn]; 8 int m,n; 9 string result; 10 11 string hex2bin(char c) 12 { ... 阅读全文
posted @ 2018-11-18 20:23 Asurudo 阅读(160) 评论(0) 推荐(0)
摘要: 针对UVa 572 阅读全文
posted @ 2018-11-18 19:18 Asurudo 阅读(252) 评论(0) 推荐(0)
摘要: 1 #define maxn 1000000 2 3 using namespace std; 4 5 struct Node 6 { 7 Node *left,*right; 8 }; 9 10 queue freenodes; 11 Node node[maxn]; 12 13 void init() 14 { 15 for(int i = 0;i ... 阅读全文
posted @ 2018-11-18 18:10 Asurudo 阅读(128) 评论(0) 推荐(0)
摘要: 1 class Solution 2 { 3 public: 4 vector diStringMatch(string S) 5 { 6 vector tmp {0}; 7 for(auto c:S) 8 { 9 int a = tm... 阅读全文
posted @ 2018-11-18 12:49 Asurudo 阅读(204) 评论(0) 推荐(0)
摘要: 1 class Solution 2 { 3 public: 4 bool order(string A) 5 { 6 for(int i = 0; i A[i+1]) 9 { 10 return false; 11 ... 阅读全文
posted @ 2018-11-18 12:48 Asurudo 阅读(348) 评论(0) 推荐(0)
摘要: 1 class Solution 2 { 3 public: 4 bool validMountainArray(vector& A) 5 { 6 if(A.size()A[maxIndex]) 13 maxIndex = i; 14 } 15 ... 阅读全文
posted @ 2018-11-18 12:47 Asurudo 阅读(220) 评论(0) 推荐(0)