摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 bool CmpInt_1(int a,int b) 9 { 10 return a> n; 18 19 vector ATtotal(n+10,0); 20 int ATtot... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int main() 8 { 9 int n; 10 while(cin >> n) 11 { 12 if(n==1) 13 { 14 cout v(26,0); ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #define DEF 0x3f3f3f3f 7 using namespace std; 8 9 int main() 10 { 11 int T; 12 scanf("%d",&T); 13 while(T --) 14 ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 bool sppalindjudge(string s,int n) 10 { 11 char* pre = &s[0]; 12 char* end = &s[n-1]; 13 ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 5 //Real capacity is CircularQueueMaxSize -1 6 #define CircularQueueMaxSize 1000 7 #define MaxSize 1000 8 9 typedef int TreeEleType; 10 type... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 TreeNode* constructFromPrePost(vector& pre, vector& post) 5 { 6 if(pre.size()==0) 7 return NULL; 8 ... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 vector fairCandySwap(vector& A, vector& B) 5 { 6 vector result; 7 int total_A = 0,total_B = 0; 8 sort(... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 vector findAndReplacePattern(vector& words, string pattern) 5 { 6 vector result; 7 map store; 8 map st... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int main() 10 { 11 int n,k; 12 while(cin >> n >> k) 13 { 14 string input; 15 ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int main() 10 { 11 long long int n,k; 12 while(cin >> n >> k) 13 { 14 if(n*2-1<... 阅读全文