摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 using namespace std; 12 struct Point 13 { 14 int x,y; 15 Point(int ... 阅读全文
posted @ 2018-09-30 14:10 Asurudo 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 #define _for(i,a,b) for(int i = (a);i = b; 23 } 24 }; 25 26 int readin... 阅读全文
posted @ 2018-09-30 13:46 Asurudo 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 vector wordSubsets(vector& A, vector& B) 5 { 6 int hash[28]; 7 int hash2[28]; 8 memset(hash,0,sizeof(h... 阅读全文
posted @ 2018-09-30 11:52 Asurudo 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 int partitionDisjoint(vector& A) 5 { 6 if(A.size()==2&&A[0] B(A.size(),0); 9 10 int Min = 10000000; 11... 阅读全文
posted @ 2018-09-30 11:07 Asurudo 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 bool hasGroupsSizeX(vector& deck) 5 { 6 vector deckList(10002,0); 7 8 // int max = 0; 9 f... 阅读全文
posted @ 2018-09-30 11:06 Asurudo 阅读(656) 评论(0) 推荐(0) 编辑