摘要:
Robert is a famous engineer. One day he was given a task by his boss. The background of the task was the following: Given a map consisting of square b 阅读全文
posted @ 2017-05-22 13:14
claireyuancy
阅读(153)
评论(0)
推荐(0)
摘要:
题目链接: http://poj.org/problem?id=3207 Ikki's Story IV - Panda's Trick Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 8063 Accepted: 2969 D 阅读全文
posted @ 2017-05-22 12:06
claireyuancy
阅读(129)
评论(0)
推荐(0)
摘要:
问: As the title implies, I am using AFNetworking in an iOS project in which the application talks to a server. When the user signs in, the server resp 阅读全文
posted @ 2017-05-22 11:19
claireyuancy
阅读(563)
评论(0)
推荐(0)
摘要:
一.操作系统工作概述 存储程序计算机工作模型,计算机系统最最基础性的逻辑结构; 函数调用堆栈,高级语言得以执行的基础; 中断。多道程序操作系统的基点。 二.代码分析 在上一篇博文《搭建OS kernel环境方法》的基础上进行时间片轮转多道程序的小os. 主要对mypcb.h, mymain.c 和m 阅读全文
posted @ 2017-05-22 10:10
claireyuancy
阅读(268)
评论(0)
推荐(0)
摘要:
近期在做一个须要使用Frament+ViewPage制作一个滑动的效果,看了非常多资料,最终实现了,这与大家分享一下战果 总结一下。这里我做了一个Demo分享给大家 我的文件文件夹结构图 1。首先要有一个ViewPage组件,他是3.0以后出现的,所以要导入android.support.v4这个包 阅读全文
posted @ 2017-05-22 09:06
claireyuancy
阅读(158)
评论(0)
推荐(0)
摘要:
解题思路: 通过两次DFS求树的直径,第一次以随意点作为起点,找到距离该点距离最远的点,则能够证明这个点一定在树的直径上,然后以该点为起点进行DFS得到的最长路就是树的直径。 最后的询问,假设K <= D + 1则能够沿着直径走,距离为K - 1, 假设K >= D + 1。则须要走直径旁边的分支, 阅读全文
posted @ 2017-05-22 08:17
claireyuancy
阅读(134)
评论(0)
推荐(0)