会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卖程序的小歪
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
46
下一页
2014年12月16日
Leetcode Intersection of Two Linked Lists
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
阅读全文
posted @ 2014-12-16 19:27 卖程序的小歪
阅读(156)
评论(0)
推荐(0)
2014年12月9日
Cocos2d-js 开发记录:基本图形绘制
摘要: 做着做着想要用基本绘图函数画个矩形,在cocos2d-js 3.0里可以使用DrawNode var dn = new cc.DrawNode(); var ltp = cc.p(0, 32); var rbp = cc.p(32, 0); d...
阅读全文
posted @ 2014-12-09 14:47 卖程序的小歪
阅读(470)
评论(0)
推荐(0)
Cocos2d-js 开发记录:骨骼动画载入
摘要: 不得不说cocos2d-js的文档实在是少,骨骼动画的载入和C++版本的好像还有些不同不能直接依样画葫芦。一个由cocos studio编辑生成的骨骼动画一般会包含如下几个文件:.ExportJson文件.plist文件.png文件ExportJson文件包含了骨骼动画的动作和所要用到的资源的名称,...
阅读全文
posted @ 2014-12-09 14:30 卖程序的小歪
阅读(3173)
评论(0)
推荐(0)
2014年11月26日
PAT 1081. Rational Sum
摘要: #include #include using namespace std;long long gcd(long long a, long long b) { long long r; while (r = (a % b)) { a = b; b = r; ...
阅读全文
posted @ 2014-11-26 23:36 卖程序的小歪
阅读(142)
评论(0)
推荐(0)
2014年11月25日
PAT 1044. Shopping in Mars
摘要: #include #include #include #include #include using namespace std;int main() { int N, M; scanf("%d%d", &N, &M); vector nums(N); vector ...
阅读全文
posted @ 2014-11-25 23:25 卖程序的小歪
阅读(164)
评论(0)
推荐(0)
2014年11月24日
PAT 1038. Recover the Smallest Number
摘要: #include #include #include #include using namespace std;bool mycmp(const string& a, const string& b) { string ta = a + b; string tb = b + a; ...
阅读全文
posted @ 2014-11-24 23:44 卖程序的小歪
阅读(190)
评论(0)
推荐(0)
PAT 1034. Head of a Gang[bug]
摘要: 有一个两分的case出现段错误,真是没救了,估计是要写bfs的形式,可能栈溢出了#include #include #include #include #include #include using namespace std;int G[1001][1001] = {0};class Man {p...
阅读全文
posted @ 2014-11-24 22:52 卖程序的小歪
阅读(532)
评论(1)
推荐(0)
PAT 1085. Perfect Sequence
摘要: #include #include #include #include using namespace std;int main() { int N,p; scanf("%d%d", &N, &p); if (N seq(N); for (int i=0; i m ...
阅读全文
posted @ 2014-11-24 00:03 卖程序的小歪
阅读(199)
评论(0)
推荐(0)
2014年11月23日
PAT 1061. Dating
摘要: 题是别人出的,不按她的想法来也没办法,真心想k一顿#include #include using namespace std;const char* days[] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};inline bool is_...
阅读全文
posted @ 2014-11-23 22:32 卖程序的小歪
阅读(195)
评论(0)
推荐(0)
PAT 1033. To Fill or Not to Fill
摘要: #include #include #include #include using namespace std;int main() { int N; double mcap, dist, davg; scanf("%lf%lf%lf%d", &mcap, &dist, &dav...
阅读全文
posted @ 2014-11-23 11:33 卖程序的小歪
阅读(203)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
46
下一页
公告