自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (1)
  • 收藏
  • 关注

原创 算法笔记 问题 B: 首字母大写

#include <stdio.h>#include <ctype.h>int main(){ char a; bool flag=false; while(scanf("%c",&a) != EOF){ if(a == ' ' || a == '\t' || a == '\r' || a == '\n'){ printf("%c",a); flag=f

2022-01-22 18:28:15 290

原创 算法笔记Problem A: 日期差值

#include <stdio.h>bool isleap(int);int main(){ int cal[13][1]={{0,0},{31,31},{28,29},{31,31},{30,30},{31,31},{30,30},{31,31},{31,31},{30,30},{31,31},{30,30},{31,31}}; int time1,year1,month1,day1; int time2,year2,month2,day2; int i,j

2022-01-20 19:30:53 194

原创 运筹学算法

最小支撑树问题解题步骤:画出最小支撑树,并写出最小值是多少避圈法开始选一条最小的边,以后每一步,总从与已选边不构成圏的那些未选边中,选一条权最小的。(每一步中,如果有两条或两条以上的边都是最小的边,则从中任选一条)破圈法任取一个圏,从圏中去掉一条权最大的边(如果有两条或两条以上的边都是权最大的边,则去掉其中任意一条。)在余下的图中,重复这一过程,直到得到一个不含圏的图中,这是的圏便是最小树。最短路径算法(Dijkstra算法)Note:Dijkstra只适合所有边>=0的情形,当赋

2020-12-22 21:18:19 2218

原创 2020-11-19

Archlinux无声音解决方法用命令获取声卡的声卡ID和设备IDaplay -l在amixer配置音频amixer scontrols然而并没有“Master”,这种情况应该是默认声卡不对。在刚才 aplay -l 里面选择声卡1,设备ID为0的声卡amixer -c 1 scontrols把下列配置添加到系统级别的 /etc/asound.conf 或用户级别的 ~/.asoundrc 文件。如果文件不存在,可以手动创建。其中的各个ID,请根据实际情况调整:defaults.pc

2020-11-19 08:18:18 176

原创 2020-07-23

%Sample file: textnote1.tex\documentclass{sample}\begin{document}It is of some concern to me thatthe terminology used in multi-sectionmath courses is not uniform.In several sections of the course onmatrix theory, the term‘‘hamiltonian-reduced’’ is used.

2020-07-23 18:01:35 64

原创 How to run virtual machines with virt-manager

Introducing QEMU/KVM and LibvirtQEMU is a complete system emulator that works together with KVM and allows you to create virtual machines with hardware and peripherals.Finally libvirt is the API layer that allows you to administer the infrastructure, ie

2020-06-28 16:11:23 97

原创 C/C++语言中负数取模

取模运算实际上是计算两数相除以后的余数。假设 q 是 a、b 相除产生的商(quotient),r 是相应的余数(remainder),那么在几乎所有的计算系统中,都满足:a = b x q + r,其中 |r|<|a|。因此 r 有两个选择,一个为正,一个为负;相应的,q 也有两个选择。如果a、b 都是正数的话,那么一般的编程语言中,r 为正数;或者如果 a、b 都是负数的话,一般 r 为负数。但是如果 a、b 一正一负的话,不同的语言则会根据除法的不同结果而使得 r 的结果也不同,但是一般 r

2020-06-01 09:49:48 2103

原创 在sd卡内配置wifi和ssh

#在sd卡内 配置wifi和ssh##WiFi config在/boot/中创建文件wpa_supplicant.confctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1country=«your_ISO-3166-1_two-letter_country_code»network={ ...

2020-04-17 12:26:24 425

原创 2020-01-20

Thinking解引用得到的是变量地址对应的值(非正式,仅方便自己思考)

2020-01-20 22:02:14 71

原创 manjaro setting

**manjaro keys resetting**rm -r /etc/pacman.d/gnupgpacman-key --initpacman-key --populate archlinux archlinuxcn manjaro(re-add the fault keys)4.pacman-key --refresh-keys

2020-01-19 20:49:49 144

空空如也

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

TA关注的人

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