摘要: 1 #include 2 3 int trap(int* height, int heightSize) 4 { 5 int rains = 0; 6 if(heightSize==0) 7 return rains; 8 int leftmax = 0,rightmax = 0; 9 int left = 0,right ... 阅读全文
posted @ 2018-08-23 18:05 Asurudo 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main (void) 4 { 5 int a[1001], len; 6 int i; 7 int arc; 8 int j; 9 while(scanf("%d", &len)!= EOF){ 10 arc = 0; 11 for(i ... 阅读全文
posted @ 2018-08-23 18:04 Asurudo 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 9 bool FindYourMiku(char **board,char *MIKU,int cur_x,int cur_y,int sizeRow,int sizeCol,int MikuStart) 10 { 11... 阅读全文
posted @ 2018-08-23 18:03 Asurudo 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 int max(int a,int b) 8 { 9 return a>b?a:b; 10 } 11 12 int maxDestroy(int* nums, int numsSize) { 13 int arr... 阅读全文
posted @ 2018-08-23 18:02 Asurudo 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define MAX 1500 8 9 struct TreeNode 10 { 11 int val; 12 struct TreeNode *left; 13 struct... 阅读全文
posted @ 2018-08-23 18:01 Asurudo 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-08-23 17:58 Asurudo 阅读(182) 评论(0) 推荐(0) 编辑