首页 > TAG信息列表 > Extra

2022 牛客多校 Extra & 第九场部分题解

2022 牛客多校第九场 & Extra 部分题解 前段时间沉迷生活大爆炸 & 原神 & vtb & galgame & 番无法自拔,因此咕到现在。。。 Cmostp 挺妙的题。本以为有一只 log 的做法。 覆盖后的颜色变换不多,可以用 set+树剖或者阉割版的lct+树状数组,我写了后者,把答案算在重链头上,维护路径覆盖。

docker toolbox 设置镜像加速

1.在docker toolbox执行下面的命令进入VM bash docker-machine ssh default 2.执行如下命令 sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=https://www.daocloud.io/mirror |g" /var/lib/boot2docker/profilesudo sed -i "s|EXTRA_ARGS='|EX

VS Code PlatformIO 踩坑心得

起因:乐鑫原生的编译环境实在是太不友好,所以使用VS Code下的PlatformIO插件过程中的一些踩坑记录,希望能帮到大家 以下问答均建立在硬件:ESP32,框架:Arduino   问:如何在PlatformIO编译和烧写时打印完整的日志? 答:在控制终端输入:pio run -e esp32dev -t upload -v,详细含义介绍可使用pio

wamp配置多站点步骤

1. 多端口虚拟目录方法 修改hosts   位置是 C:\windows\system32\drivers\etc\   在D:\wamp\bin\apache\apache2.2.21\conf 中找到httpd.conf文件,找到include conf/extra/httpd-vhosts.conf将前面的“;”去掉 找到 Listen 80 在下方增加 Listen 8080   在D:\wamp\bin

【IDL】关键字继承

关键字继承允许IDL程序使用本身没有定义的关键字参数,可以在调用的时候传递继承的关键字。IDL中的关键字继承一般有以下两种情况: 程序继承 - 允许程序可以非常方便地使用调用继承的关键字和参数。 对象继承 - 在对象继承中,子类可以选择继承超类的方法和属性。 1. 程序继承 在I

Python之urlencode()使用方法

urlencode() 传入参数类型:字典 功能:将存入的字典参数编码为URL查询字符串,即转换成以key1=value1&key2=value2的形式 导入:from urllib.parse import urlencode Ps:url单个字符串编码用quote()函数 1.url标准符号,数字字母 1. from urllib.parse import urlencode 2. base_url = "ht

golang 反序列化问题,不能把 string 反序列化成其他类型

今天写代码排查问题时发现了一个问题,我想把下面这个json字符串反序列到一个对象中,所以我定义了一个 struct { "name": 42, "age": 2, "extra": "{\"city\": \"北京\"}" } struct 的定义如下: type Student struct { Name string

k8s x509: certificate is valid for 10.x.x.x, 172.x.x.x, not 117.x.x.x

链接k8s错误 1、reset集群 kubeadm reset 2、重新初始化集群, 加上--apiserver-cert-extra-sans=117.X.X.X kubeadm init --apiserver-advertise-address=172.x.x.x --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.20.12 --service-cidr=1

MySQL: Windows

https://dev.mysql.com/doc/refman/8.0/en/multiple-windows-services.html           Remove-Service -Name MySQL80 mysqld --install MySQL --defaults-extra-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini"      

PlatformIO 开发STM32 (Arduino框架)

PlatformIO 开发STM32 (Arduino框架) 创建项目 Board选 STM32F103C8(20k RAM.64k Flash)(Generic) 硬件接线及跳线 跳线 使用Jlink无需配置boot引脚 建议都默认为0,boot启动模式参考文档 硬件接线 JLINK STM32 Board (Reset) (R) (3.3v) (3.3v) (SWCLK) (DCLK) (SW

火狐浏览器韩国文字成方块显示 debian11

sudo apt-get install fonts-unfonts-core fonts-unfonts-extra apt-cache search korean font 之后不用重新打开浏览器即刻解决 原文链接

C语言popen产生了额外的shell进程

解决:命令前加exec   转自:https://stackoverflow.com/questions/6742635/popen-creates-an-extra-sh-process

获取数据库表字段的各项属性

SELECT COLUMN_NAME "字段名称", COLUMN_TYPE "字段类型", CHARACTER_MAXIMUM_LENGTH "字段最大长度", IF( EXTRA = "auto_increment", CONCAT( COLUMN_KEY, "(", IF ( EXTRA = "auto_increment", "自增长", EXTRA

windows 安装pycocotools工具

windows 安装pycocotools工具 git clone https://github.com/cocodataset/cocoapi.git #To prevent installation error do the following after commiting cocooapi : #using file explorer naviagate to cocoapi\PythonAPI\setup.py and change line 14 from:

Laravel基于PHP Monolog打造一个API日志记录器

之前的文章中,我们提到了基于PHP Monolog打造一个API日志记录器,链接在此,基于PHP Monolog,打造一个API请求日志记录器 而本文中,我们将介绍如何在Laravel简洁快速的使用它。 composer require pianzhou/monolog comopser require pianzhou/laravel 1、开始之前,我们新建一个数据表,以

执行计划之Extra列详解

MySQL学习系列 官方文档路径:https://dev.mysql.com/doc/refman/5.7/en/explain-output.html#explain-extra-information 顾名思义, Extra 列是用来说明一些额外信息的, 我们可以通过这些额外信息来更准确的理解 MySQL 到底将如何执行给定的查询语句。 MySQL 提供的额外信息很

RKE部署 K8S

rancher部署K8S对内核有要求,要求5.4以上版本的内核 cat >update-kernel.sh <<EOF #!/bin/bash sudo yum install -y https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm sudo yum info --enablerepo=elrepo-kernel kernel-lt kernel-ml sudo yum install --skip

autopep8插件安装gvim

tell-k/vim-autopep8: autopep8 plugin for Vim (github.com) Required autopep8 · PyPI autopep8 Installation Simply put the contents of this repository in your ~/.vim/bundle directory. But on some platforms the following extra steps might be necessary to en

处理含有特殊字符的 csv

【问题】 I have a csv file that looks like this: "first", "abc", "def", "last" "111", "abc", "p"roblem", "last" "aaa", "abc", "456", "last&

Android USB串口通信实现 以及绕过USB弹框验证,androidstudio社区

上面的代码运行之后,如果没有问题则会得到一个UsbDevice,先看看google文档给出的这个类的解释: This class represents a USB device attached to the android device with the android device acting as the USB host. Each device contains one or more UsbInterfaces, each

线程池的使用

线程池的使用 线程池的概念就是首先创建一些线程,它们的集合就是线程池线程池的创建: 可以通过Exectors.newCachedThreadPool()创建某一类型的线程池 也可以通过 new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.SECONDS,workQueue, threadFac

Add some extra appeal to your ride with LED Lighting

LED lighting brings cool and soothing effects on the onlooker and makes the experience a plush one. The lighting systems are adaptable and sort your long drives with an array of fruitful car supportive.LED lighting is gaining roaring popularity these days

AlphaFold2代码阅读(四)

2021SC@SDUSC class EmbeddingsAndEvoformer class EmbeddingsAndEvoformer(hk.Module): def __init__(self, config, global_config, name='evoformer'): super().__init__(name=name) self.config = config self.global_config = global_config

Android发送mail的源码

把做工程过程中常用的内容段记录起来,如下内容段是关于Android发送mail的的内容,应该对小伙伴们有用。 mime = “img/jpg”; shareIntent.setDataAndType(Uri.fromFile(fd), mime); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(fd)); shareIntent.putExtra(Intent.EXTR

【MIT 6.S081】Arch Linux下搭建xv6环境

目录 1. 更新系统2. 安装资源包3. 测试4. 降级安装包5. 下载xv66. 成功7. 联系 1. 更新系统 sudo pacman -Syyu 2. 安装资源包 sudo pacman -S riscv64-linux-gnu-binutils riscv64-linux-gnu-gcc riscv64-linux-gnu-gdb qemu-arch-extra 3. 测试 riscv64-linux-gnu-g