会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Asurudo Jyo の 倉 庫
手握红莲,青息不偃
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
47
下一页
2019年2月7日
Leetcode-983 Minimum Cost For Tickets(最低票价)
摘要: 1 #define _for(i,a,b) for(int i = (a);i & days, vector& costs) 12 { 13 int sz = days.size(); 14 int dp[sz+2]; 15 initdp(dp,sz+2); 16 17 ...
阅读全文
posted @ 2019-02-07 05:46 Asurudo
阅读(502)
评论(0)
推荐(0)
2019年2月4日
Leetcode-413 Arithmetic Slices(等差数列划分)
摘要: 1 #define _for(i,a,b) for(int i = (a);i & A) 14 { 15 int cur = 0; 16 if(A.size()<2) 17 return 0; 18 19 int rnt = 0; 20 _for(i...
阅读全文
posted @ 2019-02-04 13:08 Asurudo
阅读(167)
评论(0)
推荐(0)
2019年2月3日
Leetcode-403 Frog Jump(青蛙过河)
摘要: 1 #define pb push_back 2 #define _for(i,a,b) for(int i = (a);i & stones) 7 { 8 int sz = stones.size(); 9 if(sz==2&&stones[1]==1) return true; 10 11 v...
阅读全文
posted @ 2019-02-03 20:39 Asurudo
阅读(194)
评论(0)
推荐(0)
Leetcode-985 Sum of Even Numbers After Queries(查询后的偶数和)
摘要: 1 #define _for(i,a,b) for(int i = (a);i sumEvenAfterQueries(vector& A, vector>& queries) 8 { 9 vector rnt; 10 int rntEle = 0; 11 _for(i,0,A.size()) 12 ...
阅读全文
posted @ 2019-02-03 14:59 Asurudo
阅读(225)
评论(0)
推荐(0)
Leetcode-988 Smallest String Starting From Leaf(从叶结点开始的最小字符串)
摘要: 1 #define pb push_back 2 #define _for(i,a,b) for(int i = (a);i v,TreeNode* root,string &s) 7 { 8 9 if(root->left==NULL&&root->right==NULL) 10 { 11 ...
阅读全文
posted @ 2019-02-03 14:58 Asurudo
阅读(468)
评论(0)
推荐(0)
Leetcode-986 Interval List Intersections(区间列表的交集)
摘要: 1 bool cmp(Interval a,Interval b) 2 { 3 return a.start intervalIntersection(vector& A, vector& B) 10 { 11 vector rnt; 12 for(int i = 0; i =B[j].start&&A[i].sta...
阅读全文
posted @ 2019-02-03 14:57 Asurudo
阅读(424)
评论(0)
推荐(0)
Leetcode-987 Vertical Order Traversal of a Binary Tree(二叉树的垂序遍历)
摘要: 水过去了(发出了混子的声音
阅读全文
posted @ 2019-02-03 14:57 Asurudo
阅读(344)
评论(0)
推荐(0)
2019年1月24日
有名なプールサイド [MISSION LEVEL: A]
摘要: PS:只放了一个建筑,最差解法,完全是水过去的
阅读全文
posted @ 2019-01-24 10:33 Asurudo
阅读(620)
评论(0)
推荐(0)
隔離された街のゲート [MISSION LEVEL: B]
摘要: 1 #include 2 #define _for(i,a,b) for(int i = (a),i##end=(b);i > c; 17 if(c=='U') 18 y ++; 19 else if(c=='R') 20 x ++; 21 else if...
阅读全文
posted @ 2019-01-24 10:32 Asurudo
阅读(370)
评论(0)
推荐(0)
砂漠の公園 [MISSION LEVEL: B]
摘要: 1 #include 2 #define _for(i,a,b) for(int i = (a);i score score) 20 return 1; 21 return -1; 22 } 23 24 void show(TEAM *teamList,int n) 25 { 26 _for(j,0,n) 27 printf("%d %d %d %...
阅读全文
posted @ 2019-01-24 10:31 Asurudo
阅读(416)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
···
47
下一页
公告