当前位置:首页 > 技术杂谈 >

文章分类:技术杂谈

技术杂谈 contos7命令行访问网址

1.curl访问: 例子: curl http://www.baidu.com 注意:这种访问只会直接读取网站HTML代码出来 2.elinks访问: yum -y install elinks :安装elinks elinks --dump http://www.baidu.com 3.lynx访问:(可以登录访问页……

技术杂谈 单词「TJOI 2013」(AC自动机)

传送门 我们正常的建好Trie后求一遍fail。之后对于每一个节点,从它的fail连向它一条单项边。然后从根节点开始dfs。 记sum[i]代表从根到i号节点所代表的的字符串出现的次数,即该点的……

技术杂谈 Task03 打卡

模型过拟合欠拟合 训练误差和泛化误差 训练误差 指模型在训练数据集上表现出的误差 泛化误差 指模型在任意?个测试数据样本上表现出的误差的期望 我们的注意力应集中于降低泛化误……

技术杂谈 leetcode3 Longest Substring Without Repeating Characters

1 """ 2 Given a string, find the length of the longest substring without repeating characters. 3 Example 1: 4 Input: "abcabcbb" 5 Output: 3 6 Explanation: The answer is "abc", with the length of 3. 7 Example 2: 8 Input: "bbbbb" 9 Output: 1……

技术杂谈 error: failed to push some refs to

! [rejected] master - master (non-fast-forward) error: failed to push some refs to 使用如下命令:git pull --rebase origin master 然后再进行上传: git push -u origin master……

技术杂谈 Promise

回调地狱 1 var base = 0 ; 2 var img = new Image(); 3 img.src = "./images/3-.jpg" ; 4 img.onload = function (){ 5 base = img.width; 6 var img1 = new Image(); 7 img1.src = "./images/4-.jpg" ; 8 img1.onload = function (){ 9 base = img1.wid……

技术杂谈 面试:字符串字典序最大的子序列

字符串字典序最大的子序列 首先要知道什么是字典序,顾名思义,就是字典上的顺序。两个字符串进行对比时, 一位一位的按照a, b, c等字典序比较,如果相同就顺位比较下一位,比……

技术杂谈 假期编程

此博客链接: 电话号码 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2081 Problem Description 大家都知道,手机号是一个11位长的数字串,同时,作为学生,还可以申请加入校园网,如果加入……

技术杂谈 kotori和bangdream

#includecstdio #include iostream using namespace std; int n,x,a,b; int main() { cin nxa b; double ans=n*(a*x* 1.0 / 100 b*( 100 -x)* 1.0 / 100 ); printf( " %.2lf " ,ans); return 0 ;}……

技术杂谈 Mybatis入门学习(一)

1、MyBatis简介 MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google code,并且改名为MyBatis 。2013年11月迁移到Github。 需要在Github上下载!地址: http……