摘要:
装完ubuntu系统后,找不到启动文件所在分区 用过U盘进入ubuntu试用模式 无线网卡连接网络 打开终端,添加boot-repair所在的源 sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update 安装b 阅读全文
摘要:
步骤 添加路由信息 sudo ip route add default via 192.168.101.1 百度ping不同,配置域名解析 1 sudo vim /etc/resolvconf/resolv.conf.d/base 2 nameserver 8.8.8.8 3 nameserver 阅读全文
摘要:
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 #include <string> 5 #include <cstdio> 6 using namespace std; 7 int a[100010]; 8 int 阅读全文
摘要:
一、彩票中奖。 彩票中奖的规则为购彩票的后x位与公布的中奖号码的后x位相同 第一行输入两个数n和m分别表示买的初始彩票号,和连续的m个彩票。 接下来多行,每行若干个整数,第一个整数表示x,中奖彩票的位数x,其余的整数表示中奖的号码的后x位。 读入以END表示结束 如果没有中奖输出“NO” 如果中奖, 阅读全文
摘要:
1 #ifndef PPX_BASE_MEMORY_POOL_H_ 2 #define PPX_BASE_MEMORY_POOL_H_ 3 4 #include <climits> 5 #include <cstddef> 6 #include <mutex> 7 8 namespace ppx { 阅读全文
摘要:
问题: 1、无法远程连接Virtual box内虚拟机,网络ping不通 解决方法,设置端口转发。选择网络按钮,选中网卡,连接方式选择NAT,接入网线,端口转发 配置名称,主机端口号为9022(未被占用的都可以),子系统端口号为22(必须是22)。 然后就可以远程连接了 //主机SSH连接虚拟机,其 阅读全文
摘要:
find .|xargs grep -ri "要查找的字符串" 阅读全文
摘要:
1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 5 int a[1020]; 6 7 void fix(int a[], int i, int n) 8 { 9 int l = 2 * i, r = 2 * i + 阅读全文
摘要:
Package microtype Error: Font expansion does not work with xetex. \begin{document} 解决方法:把下面的包注释掉 \usepackage[protrusion=true, expansion=true]{microtyp 阅读全文