ICode9

精准搜索请尝试: 精确搜索
  • Codeforces Problem/1623/C题解2022-01-05 14:32:28

    Solution   Another binary search!    The only thing you need to take notice of is that you have to do the thing in the follewing order:3->n.But there's a paradox.If you want to know how many stones you want to give to the two heaps before the curr

  • CSS中的选择器2022-01-04 19:05:21

    CSS中的选择器 基本选择器有下面三种 元素选择器 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- 所有此标签的元素样式都会改变 --> <style> h1{ color:

  • C++ get time in milliseconds precision2022-01-04 15:34:22

    g++ -g -std=c++11 -I. h1.cpp -o h1 -luuid #include <iostream> #include <unistd.h> #include <ctime> #include <uuid/uuid.h> #include <string> #include <sstream> #include <fstream> #include <chrono> #include

  • c++ unique container set2021-12-26 19:34:19

    #include <iostream> #include <uuid/uuid.h> #include <ctime> #include <string> #include <sstream> #include <unistd.h> #include <fstream> #include <pthread.h> #include <queue> #include <set> #inclu

  • gcc协程演示2021-12-26 19:34:00

    main h1=00000000 h2=00000000 main h1=009B0048 h2=00000000 main h1=009B0048 h2=009C0078 main h1=009B0048 h2=009C0078 coroutine: 0 @ 009B005C coroutine: 9 @ 009C008C main h1=009B0048 h2=009C0078 coroutine: 1 @ 009B005C coroutine: 10 @ 009C008C

  • css关系选择器2021-12-25 22:02:22

    1.包含选择器  (A B) 选择所有被A元素包含的B元素,中间用空格隔开   <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Do

  • 每日一题leetcode1044.最长重复子串2021-12-23 14:58:01

    题目: 给你一个字符串 s ,考虑其所有 重复子串 :即,s 的连续子串,在 s 中出现 2 次或更多次。这些出现之间可能存在重叠。 返回 任意一个 可能具有最长长度的重复子串。如果 s 不含重复子串,那么答案为 “” 。 思路: 参考官方题解:https://leetcode-cn.com/problems/longest-duplic

  • C++ simdjson from beginning2021-12-17 15:31:20

    1.Download package wget http://archive.ubuntu.com/ubuntu/pool/universe/s/simdjson/libsimdjson5_0.7.1-1_amd64.deb 2.Install simdjson package in Ubuntu sudo dpkg -i libsimdjson5_0.7.1-1_amd64.deb 3.Check wether the simdjson is installed in Ubuntu apt l

  • html--基础知识(h1-h6改变字体粗细)2021-12-16 09:03:36

    <!DOCTYPE html><html><head><meta charset="utf-8"><title>网页标题</title></head><body><!-- h1-h6代表字体粗细--><h1>h1</h1><h2>h2</h2><h3>h3</h3><h4>h4</h4>

  • C++ multi thread via pthread to retrieve returned result2021-12-12 15:31:20

    #include <stdio.h>#include <stdlib.h>#include <uuid/uuid.h>#include <unistd.h>#include <fstream>#include <istream>#include <ostream>#include <sstream>#include <string.h>#include <iostream>#includ

  • css3课后记录 样式引入(学习自用)2021-12-07 09:02:13

    css基本语法结构 选择器 { 声明1;               声明2;               ……  } 例子 h1 { font-size:12px; color:#F00; } HTML中引入CSS样式 行内样式 使用style属性引入CSS样式 <h1 style="color:red;">style属性的应用</h1> <p style="font-s

  • Ker f 是 G 的正规子群的完整证明2021-12-05 11:32:16

    已知 f: G → G' 是一个同态映射,e' 是 G' 的单位元,Ker f = {a ∈ G | f(a) = e'}. 则 Ker f 是 G 的正规子群. 证明:由同态映射定义知  f(a) = f(e·a) = f(e)·f(a),f(a) = f(a·e) = f(a)·f(e) 即有 f(a) = f(e)·f(a) = f(a)·f(e),即 f(e) = e',e ∈ Ker f 对任意的 h1 ∈ Ker

  • Test2021-12-04 15:31:08

    H1 H2 H3 H4 H5 H6 test test test test test test test test test \(test\) \[test \]\(\sum\)

  • 201709-4 通信网络2021-12-02 09:33:21

    思路: 应该要将题目进行转化,转化为平时可以理解的形式。这里就是说求所有这样的点,其他点要么可以访问他,要么可以被他访问到,也就是说用两种边,一种是正向的,一种是反向的,然后dfs就行了。 代码: #include <iostream> #include <vector> #include <algorithm> #include <cstring> using n

  • Web学习Day32021-12-01 17:30:24

    JQuery 简介 jQuery是一个快速、简洁的JavaScript框架,是继Prototype之后又一个优秀的JavaScript代码库(框架)于2006年1月由John Resig发布。jQuery设计的宗旨是“write Less,Do More”,即倡导写更少的代码,做更多的事情。它封装JavaScript常用的功能代码,提供一种简便的JavaScript

  • java运用二维数组随机数进行矩阵加减乘和转置2021-11-30 12:59:30

    import java.util.Random; import java.util.Scanner; public class 矩阵运算{ public static void main(String args[]){ Random ran=new Random(); int h1 =0; int l1 =0; int h2=0; int l2=0; for(int i = 0;i<1;i++) { h1 =ran.nextInt(3)+2; l1 =ran.nextInt(3)+2; h2=r

  • NLP-Attention for Seq2Seq2021-11-29 17:31:36

    目录 1.LSTM的问题 2.Seq2Seq的Attention 1.LSTM的问题 ①梯度虽然部分解决,但并未100%解决,序列过长的话,还是会有梯度消失/梯度爆炸的可能。 ②从应用的角度,一句话通常会有重点,因此我们需要考虑重点,而不是全都看。 2.Seq2Seq的Attention 核心是计算出每个隐藏层的权重。 Enc

  • 狂神Docker入门笔记总结2021-11-28 16:02:40

    文章目录 Docker概述Docker为什么出现?Docker能干嘛 Docker安装Docker的基本组成安装Docker回顾HelloWorld流程底层原理 Docker的常用命令帮助命令镜像命令容器命令常用的其他命令小结作业练习可视化什么是portainer? Docker镜像讲解镜像是什么如何获得镜像Docker镜像加载原

  • 面向对象2021-11-18 23:03:14

          类和对象的定义格式:     /** 面向过程:以步骤为单位,一步一步完成某一个具体事情 面向对象:以对象为单位,通过调度组合不同的对象来完成某一个事情 */ public class Test1{ public static void main(String[] args){ //int i = 0;

  • 使用pair作为unordered_map的键值2021-11-16 09:32:22

    struct pair_hash { template<class T1, class T2> std::size_t operator() (const std::pair<T1, T2>& p) const { auto h1 = std::hash<T1>{}(p.first); auto h2 = std::hash<T2>{}(p.second); return h1

  • c get char * str size via strlen() function and convert char *str to char array2021-11-15 09:33:11

    #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { charPointerToCharArray(); return 0; } void charPointerToCharArray() { char *str="Reflection,meditation,practice!"; int size=strlen(str);

  • webRTC中语音降噪模块ANS细节详解(四)2021-11-15 08:36:09

    上篇(webRTC中语音降噪模块ANS细节详解(三))讲了噪声的初始估计方法以及怎么算先验SNR和后验SNR。 本篇开始讲基于带噪语音和特征的语音和噪声的概率计算方法和噪声估计更新以及基于维纳滤波的降噪。   一, 带噪语音和特征条件下的语音概率 先看怎么算带噪语音和特征条件下的语音

  • 15-CSS文本外观之文字对齐2021-11-14 15:01:02

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatib

  • 信道均衡中确定equalizer delay的大小2021-11-13 20:33:58

    1. 基本概念  2. 例题说明 估计信道系数 : 3. Matlab代码计算 % 创建矩阵 H h1 = 0.375+1i*0.375; h2 = -0.125-1i*0.125; H = [h1 0 0;h2 h1 0; 0 h2 h1;0 0 h2]; % 从h构建的Tepolitz矩阵 % 计算 Square Error J_n_d_wo_e_nd = H*inv(ctranspose(H)*H)*ctranspose(H)

  • 2021-11-13组合2021-11-13 20:02:28

    组合基础 class A: def say_a(self): print("AAA") class B: def __init__(self,a): self.a=a a=A() b=B(a) b.a.say_a() #运行结果是AAA,相当于B拥有了A这个对象,进而执行了A对象里的方法 组合的更深含义与如何调用 #测试has-a的关系使用组合,这是

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有