自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

柳婼 の blog

我不管,反正我最萌~如果文章对您有帮助请点个“赞”~O(∩_∩)O谢谢!

  • 博客(9)
  • 收藏
  • 关注

原创 安装oh-my-zsh后terminal/iterm命令行终端前面用户计算机名消失之如何出现

在命令行中使用vim打开.zshrc文件:vim .zshrc然后按i进入编辑模式,找到theme,将theme修改为agnoster,然后按esc退出编辑模式,然后按:wq退出vim模式,重启命令行终端即可显示用户计算机名...

2018-04-28 23:53:00 3086

原创 在XCode的一个项目中创建多个C/C++/Cpp文件并分别运行——创建多个target实现

首先创建一个project:打开XCode并选择Create a new Xcode project选择macOS-Command Line Tool,点击Next,然后输入project名称,并选择C或C++语言这个时候已经创建了一个cpp-project的项目,里面包含了一个main.cpp文件~如果这个时候想要在同一个工程里面创建第二个带main函数的c++文件并运行,就需...

2018-04-27 03:14:17 26933 29

原创 Mac terminal终端或iterm2【 ?~?】~两边出现问号、字体有背景色的问题

主要是mac下oh-my-zsh配置主题的时候字体出了问题关于字体有背景色问题,打开terminal的偏好设置,点击描述文件(profiles),把“显示ANSI颜色”选项取消即可关于波浪线两边的两个问号问题,是因为配置中有非ascii字符编码,这两个问号本来是好看的箭头,但是箭头在当前字体中是不会被显示的……所以解决方法是重新下载一个支持非ascii编码的字体:github上有一个字体:yizh...

2018-04-16 22:43:30 14309 1

原创 mac 修改主机名和计算机名 terminal终端、iterm前面的用户名字

修改计算机名称(设备名称)为美少女小柳婼的MacBookPro15:sudo scutil —set ComputerName 美少女小柳婼的MacBookPro15修改主机名(终端前面的名字)为liuchuo:sudo scutil —set HostName liuchuo...

2018-04-16 22:43:01 33679 1

原创 GPLT L2-026. 小字辈

本题给定一个庞大家族的家谱,要请你给出最小一辈的名单。输入格式:输入在第一行给出家族人口总数 N(不超过 100 000 的正整数) —— 简单起见,我们把家族成员从 1 到 N 编号。随后第二行给出 N 个编号,其中第 i 个编号对应第 i 位成员的父/母。家谱中辈分最高的老祖宗对应的父/母编号为 -1。一行中的数字间以空格分隔。输出格式:首先输出最小的辈分(老祖宗的辈分为 1,以下逐级递增)。...

2018-04-04 17:39:36 1019 1

原创 1145. Hashing – Average Search Time (25) – 甲级

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average sea...

2018-04-04 16:34:42 5052 36

原创 PAT 1147. Heaps (30) - 甲级

In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (i...

2018-04-03 22:56:31 2062 10

原创 PAT 1146. Topological Order (25) - 甲级

This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are supposed to write a program to test...

2018-04-03 16:27:25 2439 22

原创 PAT 1144. The Missing Number (20) - 甲级

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line gives a...

2018-04-03 15:31:24 1416 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除