题目: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you ha ...
分类:
其他好文 时间:
2017-05-14 10:24:10
阅读次数:
179
计算机硬件的五大单元 输入单元 输出单元 CPU内部的控制单元 CPU内部的算数逻辑单元 主存储器 其他组件 系统单元 记忆单元 CPU架构 精简指令集 Reduced Instruction Set Computer oracle公司的aparc IBM的PowerArchitecture(如Po ...
分类:
其他好文 时间:
2017-05-13 23:21:37
阅读次数:
229
You may be surprised to find that the size of a given data type is dependent on the compiler and/or the computer architecture! ...
分类:
其他好文 时间:
2017-05-12 10:17:18
阅读次数:
152
一、什么是计算机 基于百度百科 1.简介 计算机(computer)俗称电脑,是现代一种用于高速计算的电子计算机器,可以进行数值计算,又可以进行逻辑计算,还具有存储记忆功能。是能够按照程序运行,自动、高速处理海量数据的现代化智能电子设备。 2.组成 计算机是由硬件系统(hardware system ...
分类:
编程语言 时间:
2017-05-12 01:41:56
阅读次数:
259
public class TestUSB {public static void main(String[] args) { computer m=new computer(); m.dowork(new Flash()); phone p=new phone(); m.dowork(p); //实 ...
分类:
其他好文 时间:
2017-05-12 01:39:23
阅读次数:
159
传送门 题意 给出一棵树,求离每个节点最远的点的距离 思路 对于我这种菜鸡,真是难啊。 我们能够很简单的求出每个点到以它为根的子树的最远点的距离,dfs 即可。 设 f[i][0] 表示点 i 到以它为根的子树的最远点的距离 f[i][1] 表示点 i 到以它为根的子树的次远点的距离(一会会用到) ...
分类:
其他好文 时间:
2017-05-11 11:30:48
阅读次数:
242
Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Can you propose an ...
分类:
其他好文 时间:
2017-05-10 14:55:51
阅读次数:
231
After you had helped George and Alex to move in the dorm, they went to help their friend Fedor play a new computer game «Call of Soldiers 3». The game ...
分类:
其他好文 时间:
2017-05-08 09:57:04
阅读次数:
198
arXiv is an e-print service in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance and statistics. There' ...
分类:
其他好文 时间:
2017-05-07 16:43:26
阅读次数:
239
UVA12096 - The SetStack Computer(set + map映射) 题目链接 题目大意:有五个动作: push : 把一个空集合{}放到栈顶。 dup : 把栈顶的集合取出来,在入栈两次。 add : 出栈两次。把第一个集合作为一个元素放入第二个集合中,再将第二个集合入栈 u ...
分类:
其他好文 时间:
2017-05-07 12:57:31
阅读次数:
159