2019年1月5日

C语言考试定在哪天bupt

摘要: #include int main() { int q[4]; int sum=0; int i; for(i=0;i3) printf("%c:%.2f\n",a[i],percent[i]); } } 阅读全文

posted @ 2019-01-05 21:15 Gavinthoms 阅读(128) 评论(0) 推荐(0) 编辑

leetcode.5. Longest Palindromic Substring

摘要: 字符串遍历,从中间分出奇数回文和偶数回文两种情况不断更新长度。我一开陷入入误区把字符串分为奇偶结果偶数的可以过,基数的abb过不了。所以就是分析回文就好 阅读全文

posted @ 2019-01-05 20:35 Gavinthoms 阅读(92) 评论(0) 推荐(0) 编辑

2018年12月31日

毕业论文排版格式)

摘要: http://blog.sina.com.cn/s/blog_a52bf52301015a8a.html 设置页码最有效,注意分隔符的使用,还有第六步(回去删除前面的页脚),分隔符的使用,大致意思是,全部弄上页码,最后在用分隔符删除不要需要的一部分,然后重新布局第一页。 阅读全文

posted @ 2018-12-31 13:22 Gavinthoms 阅读(166) 评论(0) 推荐(0) 编辑

2018年12月26日

leetcode.92. Reverse Linked List II

摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * };1. 。*/struct ListNode* reverseBetween(struct List 阅读全文

posted @ 2018-12-26 00:28 Gavinthoms 阅读(94) 评论(0) 推荐(0) 编辑

2018年12月23日

leetcode 53. Maximum Subarray

摘要: 上学期转专业就没怎么学好数据结构,这学期正好看了算法导论第四章也有讲动态规划和,正好前不久做那个查找最长不重样字符串的题学了一个最短字符串匹配的动态图框法。用动态规划写了一下,分治还没写出来。 不止一次在if(x=1)这种问题上犯错了,要注意。有数组里只有一个数,和全是负数的情况要处理。 阅读全文

posted @ 2018-12-23 23:47 Gavinthoms 阅读(80) 评论(0) 推荐(0) 编辑

2018年12月18日

leetcode.1.Add Two Numbers

摘要: 说实话刷leetcode让我怀疑我是不是适合搞这些。。。。 阅读全文

posted @ 2018-12-18 19:08 Gavinthoms 阅读(87) 评论(0) 推荐(0) 编辑

A. 北京市机动车网上自选牌号的正误容易鉴别吗?

摘要: #include int main() { char a[5]; scanf("%s",a); int i; for(i=0;i='0'&&a[i]='a'&&a[i]='0'&&a[4]='A'&&a[i]='0'&&a[i]<='9') num++; } if(num==2&&letter==2) condition_2=1; els... 阅读全文

posted @ 2018-12-18 19:00 Gavinthoms 阅读(200) 评论(0) 推荐(0) 编辑

打算自己好好经营一个博客了

摘要: 18:51:33昨天在博客园上看到了一个很厉害的人的博客,几乎是记录了自己大学生生活和去网易工作的经历,我也记录一下吧 阅读全文

posted @ 2018-12-18 18:51 Gavinthoms 阅读(94) 评论(0) 推荐(0) 编辑

2018年10月10日

python3.7版本安装pygame1.9.4

摘要: 最近看到用py开发打飞机游戏,于是就需要pygame插件包。python的pip工具有点像是iphone的apple store,如果安装Python的的插件和其他开源框架的时候,一般都要用pip和dos命令安装。python2.7以上的版本都自带pip工具,但是版本... 阅读全文

posted @ 2018-10-10 00:23 Gavinthoms 阅读(1776) 评论(0) 推荐(0) 编辑

导航