ICode9

精准搜索请尝试: 精确搜索
  • twenty two2022-05-16 00:00:30

    打包处理less文件 1,运行npm i less-loader@10.0.1 less@4.1.1 -D 2, 在webpack.config.js的module->rules数组中 rules:[{test:/\.less$/,use:['style-loader','css-loader','less-loader']},]   base64可以防止额外的请求,优化性能(缺点:体积会增大,大文件不适合)   打包处理样式表

  • PHP笔记(二):字符串处理相关方法2022-05-12 22:01:24

    本文记录PHP处理字符串的方法,包括普通字符串处理以及正则表达式处理字符串方法。 目录PHP基本语法字符串处理1. 字符串分割2. 用字符串连接数组元素3. 字符串切片4. 字符替换5. 大小写转换6. 字符ASCII 码相互转换7. 将字符串解析成多个变量8. 字符查询9. HTML字符转换10. 过滤变

  • 去除行内元素之间空隙的几种方式2022-05-12 16:32:38

    去掉空格 <ul> <li> one</li><li> two</li><li> three</li> </ul> 或者 <ul> <li>one</li ><li>two</li ><li>three</li> </ul> 或者 <ul> <l

  • OpenSSL测试-大数2022-05-12 14:35:21

    1. 基于OpenSSL的大数库计算2的N次方,N为你学号的后四位(5‘) 2^1024 源代码: #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <openssl/bn.h> int main(int argc, char* argv[]) { { BN_CTX* pBNctx = BN_CTX

  • 判断两个单链表是否有交叉2022-05-09 00:32:46

    思路:只需两层while循环即可,事件复杂度O(n*m),外层循环代表其中体格链表指针每次只移动一个位置,内层循环代表另一个链表的指针需从头到尾移动每次移动一个位置,每次都需要判断当前指针是不是等于外层循环的指针,如果相等,则代表有交叉。当两层循环结束后,还没碰到相同的情况,则代表无交叉

  • Dyson Box(模拟题--周长)2022-05-05 17:02:27

    swjtu—春季集训 - Virtual Judge (vjudge.net) Dyson Box Input file: standard input Output file: standard output Time limit: 2 seconds Memory limit: 256 megabytes A Dyson Sphere is a hypothetical megastructure that completely encompasses a star and captures a

  • 并查集详解 图解引入到实现| Disjoint Sets details, intro to implementation with figures.2022-04-28 14:34:37

    Introduction of Disjoint Sets It's easy to tell whether someone you know is your relative. He or she may be your uncle, grandparent or nephew. Because your blood relationship is within two or three generations. Consider such a scenario, you meet some

  • cf1366 D. Two Divisors2022-04-19 02:00:19

    题意: 找 x 的两个大于 1 的因子 d1 和 d2,使得 \(\gcd(d1+d2,x)=1\) 思路: 性质:\(\gcd(a,b)=\gcd(a+b,b)\) 所以, \(\gcd (x,y)=1=\gcd(x+y,x)=\gcd(x+y,y)\implies \gcd(x+y,xy)=1\) 找 x 的最小素因子和它的次数 \(p^k\),答案是 \(p^k,x/p^k\)

  • Redis 04 List2022-04-17 17:01:34

    在 Redis 里面,可以把 List 当成栈、队列、阻塞队列使用。 list 实际是一个链表,左右都可以插入值。 如果 key 不存在,创建新的链表。 如果移除了所有元素,空链表也代表不存在。 在两边插入或者改动值,效率最高;操作中间元素,效率相对低一些。 插入 从左插入 lpush 将一个值或者多个

  • VUE路由基本操作2022-04-15 09:34:46

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>vue路由</title> <script src="vue.min.js"></script> <script src="vue-router.min.js"></script> <

  • Python pandas concat 连接时指定索引顺序2022-04-07 11:34:03

    Python pandas concat 连接时指定索引顺序 一些旧的教材上,在使用concat连接时,使用join_axes参数指定顺序,但这已经过时了,因为报错。 >>> import pandas as pd >>> >>> one = pd.DataFrame([[0, 1], [2, 3]], columns=list('ab')) >>> two = pd.DataFrame([[10, 11], [

  • #基数排序#CF1654F Minimal String Xoration2022-03-29 16:31:38

    题目传送门 分析 有没有一种办法可以将每个 \(j\) 的比较过程同时进行, 可以发现其实这个过程很像后缀排序,实际上只是加号变成了异或, 从低位到高位重新将字符串排名,用同样的方法做到 \(O(2^nn)\) 代码 #include <iostream> using namespace std; const int N=300011; string S; i

  • CF1641D Two Arrays2022-03-29 13:00:06

    题面传送门 感觉很妙妙的一道题,但是好像啥乱搞都能过。 我们考虑排好序后对于每一个\(m\)元组求出其最小的与其不相同的\(w_j\) 容易发现这个\(w_j\)如果上升那么是没有意义的,所以可以双指针。 然后就相当于询问一个前缀内是否有与当前点完全不同的\(m\)元组,这个可以把所有子集跑

  • Two Lists Sum Advanced2022-03-27 14:35:19

    Source Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of two input numbers. Example Input: First List: 5->6->3 // represents number 563 Secon

  • 【HTML】制作一个多选的具备一定大小的Select2022-03-25 16:02:44

    代码: <select id="rightSelect" multiple="multiple" style="width:200px;height:200px;"> <option value="1">one</option> <option value="2">two</option>

  • 【C进阶】two -> 指针进阶(二)2022-03-21 22:30:27

    ⭐前言⭐ ※※※大家好!我是同学〖森〗,一名计算机爱好者,今天让我们进入学习模式。若有错误,请多多指教。

  • Paul is a project manager for an effort that requires twelve months2022-03-21 08:04:32

    Paul is a project manager for an effort that requires twelve months. During the seventh, eighth, and ninth months he needs two individuals with special qualifications. The functional manager has promised that these individuals will be available two months

  • JavaScript:2022-03-19 09:03:31

    以下测不出效果, 因为程序逻辑是在function two中执行 <script> function one () { console.info('one') } function two () { setTimeout(() => { console.info('two') }, 1) } function three () { consol

  • LeetCode 0021 Merge Two Sorted Lists2022-03-10 06:31:10

    原题传送门 1. 题目描述 2. Solution 1 1、思路分析 类似合并两个有序数组,设置两个指针分别指向两个链表的head,比较大小,把较小的结点从原始链表摘下挂到结果链表中。 2、代码实现 package Q0099.Q0021MergeTwoSortedLists; import DataStructure.ListNode; public class Soluti

  • Complex Market Analysis(1400 math two points)2022-03-09 18:01:19

    1 /**\ 2 https://codeforces.com/problemset/problem/1609/C 3 一堆数相乘是质数,其中只有一个是质数, 4 统计左边的1的个数,右边1的个数,累加即可 5 \**/ 6 #include <bits/stdc++.h> 7 using namespace std; 8 #define fi first 9 #define se second 10 #define go c

  • switch语法2022-03-07 21:03:33

    一般使用 return a switch { 100 => 10, _ => 99, }; return tag switch { TagEnum.First => 1, TagEnum.Two => 2, TagEnum.Three => 3, _ => 0 }; 使用属性 return tagObject switch { { Tag1: TagEnum.First } => 1, { Tag

  • C. Factorials and Powers of Two(枚举,暴力)2022-03-07 14:04:50

    C. Factorials and Powers of Two Tag 枚举 暴力 题目来源 Codeforces Round #774 (Div. 2) 题目大意 求问一个数能拆成最少多少个powerful的数字的和,powerful的数的定义为这个数要么是2的次方,要么是某个数的阶乘,如果没有方案,则输出-1 解题思路 我们知道一个数一定能够通过2的n

  • Codeforces Round #774 (Div. 2) C. Factorials and Powers of Two(暴力/dfs/位运算)2022-03-05 23:03:05

    include <bits/stdc++.h> define gcd(a, b) __gcd(a, b) define INF 0x3f3f3f3f3f define eps 1e-6 define PI acos(-1.0) define pb push_back define fst first define sec second define eif else if define de(x) cout << x << ' ' define en

  • 量化交易之设计模式篇 - 外观模式2022-02-27 21:32:43

    // // Created by win10 on 2021/11/16. // #include <thread> #include <iostream> using namespace std; /* 外观模式 * */ class SubSysOne { public: void method1() { std::cout << "method 1" << std::endl; } }; cl

  • 写abstract的注意事项2022-02-26 11:32:04

    1.Basic introduction to the field, which is comprehensible to a scientist in any discipline. 2.Detailed background , comprehensible  to a scientist in a related discipline. 3.One sentence starting the general problem studied in the paper. 4.One or two sen

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

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

ICode9版权所有