monocarp and set the

【每日一题】Problem 653B. Bear and Compressing

[原题](https://codeforces.com/contest/653/problem/B) #### 解决思路 根据当前字符串的首字符进行深度递归即可 ##### 误区 字符串是从头开始匹配的,因此只需要对首字符进行替换 ```C++ #include int dfs(std::map> ......
Compressing Problem Bear 653 and

Python报错 | ImportError: To be able to use evaluate-metric/seqeval, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'

**报错信息** 使用`metric = evaluate.load("seqeval")`的时候,报如下错误: ```python ImportError: To be able to use evaluate-metric/seqeval, you need to install the fol ......

Angular:error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' mu st be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'.

# 解决方案 在`tsconfig.json`的`compilerOptions`选项中添加如下内容`"skipLibCheck": true`。 如下图所示 ![image](https://img2023.cnblogs.com/blog/1795938/202307/1795938-20230 ......

hdu7319 String and GCD

[String and GCD](https://acm.hdu.edu.cn/showproblem.php?pid=7319) 首先我们需要用kmp的fail建树,然后需要利用到欧拉反演。 $$n=\sum_{d|n} \varphi(d)$$ 对于这题来说 $$(i,j)=\sum_{d|(i ......
String 7319 hdu GCD and

3.分支结构and习题

# 3.分支结构and习题 ## 一.语法 ### 1. if 语句 格式: ```python if 条件: 条件成立执行的语句 ``` ```python if 6>3: print("条件成立") ``` ### 2. if - else 语句 格式: ```python if 条件: 条件成 ......
习题 分支 结构 and

3.分支结构and习题

# 3.分支结构and习题 ## 一、语法 ### 1. if 语句 格式: ```python if 条件: 条件成立执行的语句 ``` ```python if 6>3: print("条件成立") ``` ### 2. if - else语句 格式: ```python if 条件: 条件成立 ......
习题 分支 结构 and

HDU 1312 Red and Black 题解

//注意边界判断,调了好久#include <iostream> #include <queue> using namespace std; #define check(x,y)(x<wx&&x>=0&&y<hy&&y>=0) struct node { int x, y; }; char room ......
题解 Black 1312 HDU Red

Your configuration specifies to merge with the ref

[TOC] # Your configuration specifies to merge with the ref ## 1. 执行 git pull 命令时,错误提示: Your configuration specifies to merge with the ref 'refs/heads/ ......
configuration specifies merge Your with

[Web] 会话访问的 Session, Cookie and Token

### Session Cookie Token 是什么? #### Session Session是服务器端的一种状态管理机制,用于跟踪用户在不同请求之间的状态。 当用户第一次访问服务器时,服务器会为该用户创建一个唯一的Session ID,并将该ID通过Cookie或URL参数发送给客户端保存。 ......
Session Cookie Token Web and

[USACO13DEC] The Bessie Shuffle S 洗牌 题解

提供一种思路,可以做到$O(n)$。\ 目前是全`OJ`最优解,跑到了`79ms`。 `update 2023.07.29` 完工,期望无bug(暑假快乐吖o(* ̄▽ ̄*)ブ)\ `update 2023.07.27` ~~(要原题检测了,先占个坑,有时间再补)~~ ## 原题大意 [P3095 [ ......
题解 Shuffle Bessie USACO DEC

[LeetCode] 486. Predict the Winner

You are given an integer array nums. Two players are playing a game with this array: player 1 and player 2. Player 1 and player 2 take turns, with pla ......
LeetCode Predict Winner 486 the

Nacos启动时报错No DataSource set排查

## 问题描述 最近在学习[Nacos](https://nacos.io/en-us/)组件,使用的是最新版本:2.2.3。 在本地虚拟机`CentOS 8.5.2111`环境中安装Nacos,并使用`standalone`模式启动,同时配置使用外部MySQL数据库,MySQL版本为:8.0.34 ......
DataSource 时报 Nacos set

not_the_same_3dsctf_2016

## 0X01 和get_started_3dsctf_2016类似 ![](https://picx.zhimg.com/80/v2-c4b46ac8776ff52321e4e0dc72bae1fb_720w.png) ![](https://picx.zhimg.com/80/v2-954011 ......
not_the_same 3dsctf dsctf 2016 same

重做 CF 295B Greg and Graph 以及理解 Floyd

# Floyd 原理简析 Floyd 的原理其实是 DP,定义 $\mathrm{dp}[S][i][j]$ 表示在仅经过点集 $S$ 里的点的条件下,从 $i$ 到 $j$ 的最短路距离 初始状态 $S$ 为空,$\mathrm{dp}[\varnothing ][i][j]$ 就等于 $i,j$ ......
Graph Floyd 295B Greg 295

Windows本地IDEA运行mapreduce报错java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset.

## 问题原因 在windows运行hadoopJob程序的时候需要模拟下hadoop的运行环境。否则出现会出现标题的问题。 ## 解决方案 1. 下载Hadoop的bin目录 https://github.com/s911415/apache-hadoop-3.1.3-winutils 2. 将步 ......

The Final —— NOI2023

终于到这一天了。 ## Day 0 试机的时候讲了有 SelfEval 这个东西,很好啊!CCF 终于愿意改善一点选手参赛体验了。 笔试 AK 了。 非常相信日报“不必担心睡不着,因为国赛不可能使人睡着”,似乎睡的还可以? ## Day 1 进场看题。 T1 不是扫描线板子吗?斜线就爆枚一下就行,比 ......
Final 2023 The NOI

.NET Core|--SkiaSharp 生成图像报错|--The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.

### 前言 ```bash #SkiaSharp - 版本 2.88.3 #SkiaSharp.NativeAssets.Linux.NoDependencies - 版本 2.88.3 #部署服务器环境 Linux / docker / #Visual Studio 版本 Microsoft V ......

CF547D Mike and Fish 小丑做法--zhengjun

写到一半发现标签有二分图就不对劲了,题解区里都是欧拉回路。 然而我是随机化+模拟网络流!~~自豪~~ 首先可以先建模,观察同一种颜色,发现每一行或每一列的限制即为 $\lfloor\frac{t}{2}\rfloor\le x\le \lceil\frac{t}{2}\rceil$。 然后套路地把横 ......
小丑 zhengjun 做法 547D Mike

6-on_start and on_stop方法

# 使用方法 - `on_start()`和`on_stop()`定义在User类中,直接在你自己的测试User类里面继承重写即可 - 这两个方法的执行时机分别是在@task任务执行前以及@task任务结束之后,相当于pytest中的`setup()`和`teardown()` ```python ......
on_start on_stop 方法 start on

Mapbox—geocoder搜索地点error eaching the server

# Mapbox—geocoder搜索地点error eaching the server [——There was an errorr eaching the server](#focus) 环境说明: vue3.3.4 mapbox-gl: 2.13.0 @mapbox/mapbox-gl-ge ......
geocoder 地点 eaching Mapbox server

题解 Gym 103960K【Kalel, the Jumping Frog】

## problem 一只青蛙,他会跳,现在要从 $1$ 跳到 $n$。跳一次有 $m$ 种跳法,假设现在在 $x$,那么第 $i$ 次可以从 $x$ 跳到 $x+d_i$,同时消耗 $p_j$ 的能量。问你有多少种跳的方案使得消耗能量不超过 $k$。$n\leq 10^9,m\leq 10^5,1 ......
题解 103960K Jumping 103960 Kalel

MIT 6.S081 File system performance and fast crash recovery

引入 当我们针对文件系统讨论 logging 或者 journal 时,其实是在讨论同一件事,二者是同义词。 这一部分主要是讨论 Linux 的 ext3 文件系统,它相比 ext2,可以就说就是加了一层 logging,其他基本没有改变。我们要关注 ext3 与 xv6 的文件系统的不同之处,重点 ......
performance recovery system crash File

【d2l】【困难代码】【2】 output, state = self.rnn(X_and_context, state)

## 问题来源 【d2l】9.7 序列到序列学习 ![image](https://img2023.cnblogs.com/blog/3240132/202307/3240132-20230728143550788-834842676.png) ![image](https://img2023.cn ......
state X_and_context context 代码 output

NET6 EF Error: The certificate chain was issued by an authority that is not trusted

Error A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: ......
certificate authority trusted issued Error

docker compose 更新报错 permission denied while trying to connect to the docker daemon socket

今天更新签到docker的时候输入了 ``` # 先 cd 到 docker-compose.yml 所在目录, 执行命令后重启容器 docker compose pull && docker compose up -d ``` 结果发现 `permission denied while tryin ......
docker permission compose connect denied

【题解】Max to the Right of Min - Codeforces 1849E

**出处:** Educational Codeforces Round 152 **链接:** https://codeforces.com/problemset/problem/1849/E **题目大意:** TODO(先去看原题吧) **解题思路:** PS:这里的解题思路跟标准答案不太一样 ......
题解 Codeforces 1849E Right 1849

vscode setting

``` { "workbench.iconTheme": "material-icon-theme", "window.restoreWindows": "none", "window.commandCenter": false, "files.autoSave": "onFocusChange", ......
setting vscode

论文解读(BERT-DAAT)《Adversarial and Domain-Aware BERT for Cross-Domain Sentiment Analysis》

论文信息 论文标题:Adversarial and Domain-Aware BERT for Cross-Domain Sentiment Analysis论文作者:论文来源:2020 ACL论文地址:download 论文代码:download视屏讲解:click 1 介绍 2 问题定义 在跨域 ......

the top vehicle diagnostic tools

Choosing the best vehicle diagnostic tool can be a daunting task, given the abundance of options available in the market. With advancements in technol ......
diagnostic vehicle tools the top

【报错修复】HRESULT: 0x80070057 The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\5.0.17\hostfxr.dll failed

``` 我写了一个winform程序, 拷贝到win7系统上,提示需要下载.net 给的链接是 https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win7-x64&apphost_version=5.0.3& ......
hostfxr 0x80070057 x80070057 dll 80070057