这几天考试,老师经常不给开ftp下vimrc,所以只好自己写了。 color ron set nu set autoindent set cindent set cursorline set tabstop=4 set mouse=a set sw=4 inoremap [ []<ESC>i ino ...
分类:
系统相关 时间:
2020-07-06 16:28:11
阅读次数:
66
Internal Logging If you have trouble getting NLog to work properly you may want to enable internal logging, which can help identify where the problem ...
分类:
其他好文 时间:
2020-07-06 12:57:16
阅读次数:
65
B - Brexit Negotiations https://vjudge.net/problem/Gym-102483B 描述: As we all know, Brexit negotiations are on their way—but we still do not know wheth ...
分类:
其他好文 时间:
2020-07-06 12:29:36
阅读次数:
66
题目 P3372 【模板】线段树 1 提交 121.16k 通过 48.14k 时间限制 1.00s 内存限制 125.00MB 提交答案加入收藏 题目提供者 HansBug 难度 普及/提高- 历史分数 100 提交记录 查看题解 标签 高性能 进入讨论版 题目描述 如题,已知一个数列,你需要进行 ...
分类:
其他好文 时间:
2020-07-06 11:11:03
阅读次数:
64
题目描述: 给定一个数组 nums,编写一个函数将所有 0 移动到数组的末尾,同时保持非零元素的相对顺序。 示例: 输入: [0,1,0,3,12]输出: [1,3,12,0,0]说明: 必须在原数组上操作,不能拷贝额外的数组。尽量减少操作次数。 来源:力扣(LeetCode)链接:https:// ...
分类:
移动开发 时间:
2020-07-06 10:56:02
阅读次数:
64
写在前面 在python中,内置了文件(file)对象,通过一些内置的方法就可以实现对文件的操作,例如open()方法创建一个文件对象,write()方法向文件写入内容。 一.文件基本操作 1.创建和打开文件 想要操作文件,先要创建或者打开指定文件并创建文件对象,可以通过内置函数open()来实现。 ...
分类:
编程语言 时间:
2020-07-06 10:42:23
阅读次数:
79
地址:http://codeforces.com/contest/1375/problem/C 题意: 1~n的全排列。 操作:对i,如果存在ai<ai+1,可移除它俩的任意一个。 问是否能让数组只剩一个数。 解析: 移除的过程,是不会改变整体的顺序,所以从首尾入手。 规定a1<an a1~~an ...
分类:
其他好文 时间:
2020-07-06 00:44:13
阅读次数:
92
var reverse = function(x) { var s = Math.sign(x) // 判断正负数 var x = Math.abs(x) // 求绝对值 var res = 0 while(x > 0) { const nowNum = x % 10 // 取余数 x = (x - ...
分类:
Web程序 时间:
2020-07-05 21:32:49
阅读次数:
69
题目 (史上最懒没有之一) 思路 又双叒叕死在最短路了,这题怎么看也像dfs啊,然鹅写挂了, 我们把每一层,每一个槽设为图中每一个点,这样好像是一个二维矩阵。 既然按照最短路的思路来,首先是建图,建图。。。。。 这怎么建??!因为我们平时建图用的都是一维编号,所以我们把,整个二维压到一维中去,这里用 ...
分类:
其他好文 时间:
2020-07-05 21:20:42
阅读次数:
70
import os size=0 filename='输入你的文件夹绝对路径' for g in os.walk(filename): path, dir_list, name_list=g for name in name_list: abs_path=os.path.join(path,name ...
分类:
编程语言 时间:
2020-07-05 21:10:49
阅读次数:
56