morning four the in
Programming abstractions in C阅读笔记:p144-p160
《Programming Abstractions In C》学习第56天,p144-p160。完成第三章内容学习,第三章总计54页(p107-p160),耗时10天,平均6页/天。 # 一、技术总结 第三章的内容主要介绍C语言中的库(library)和接口(interface),如我们最常遇到的以 ......
CF724G Xor-matic Number of the Graph
[题目链接](https://codeforces.com/problemset/problem/724/G) 不妨先看一道更为基础的题:[CF845G](https://codeforces.com/problemset/problem/845/G)以及[它的题解](https://www.cnb ......
Codeforces Round 843 (Div. 2) A2. Gardener and the Capybaras (hard version)
有三个字符串 $s_1, s_2, s_3$ ,每个字符串只有 $a, b$ 组成。三个字符串顺序连接在了一起。满足以下条件之一: * $s1 \leq s_2, s_3\leq s_2$ * $s1 \geq s_2, s_3\geq s_2$ 以上为字典序比较。 给出连接的三个字符串,输出一组可 ......
Codeforces Round 874 (Div. 3) B. Restore the Weather
给一个长为 $n$ 的数组 $a$ ,给一个长为 $n$ 的乱序数组 $b$ ,给一个正整数 $k$ 。要求重排 $b$ 使得 $\forall i, |a_i - b_i| \leq k$ 。输出其中一种 $b$ 的排列方式。 一个性质题。(div2 前几题很喜欢有序数组的经典性质) 总结一下有序 ......
【题解】CF1852C Ina of the Mountain
我们先从题目的一部分入手。 如果说,我们没有当一个数为 $0$ 时,让这个数变成 $k$ 的性质,我们如何求答案呢? 很简单,在图上就是: 绿色线段的长度加起来即为答案(本图中是 $6$) 我们考虑很显然地,将一个数从 $0$ 变为 $k$ 即为将一个数一开始加上 $k$ 我们如果要让第 $i$ 列 ......
如何编写出简洁高效的 prompt 来释放出 ChatGPT 更加强大的能力 All In One
如何编写出简洁高效的 prompt 来释放出 ChatGPT 更加强大的能力 All In One
ChatGPT prompt
ChatGPT 提示词
......
It is strongly discouraged to install anything else in the base envionment
For both mamba and conda, the base environment is meant to hold their dependencies. It is strongly discouraged to install anything else in the base en ......
Java Socket IO流关闭问题: Exception in thread "main" java.net.SocketException: Socket is closed
## 先说结论 问题: 明明执行的语句在`socket.close`前, 却出现**Exception in thread "main" java.net.SocketException: Socket is closed**报错 结论: 在Java中关闭一个包装流会导致它的底层流也被关闭所以一般使 ......
The Riordan Group and Applications 第1章 笔记
2022年的一本书,只有376页。证明直接去书里面找。 [TOC] # 1 介绍 ## 1.1 啥是RiordanArray ## 1.2 起源和研究动机 ## 1.3 基础的应用 $$ \mathfrak{B}_r=\sum_{n \geq 0} \frac{1}{(r-1) n+1}\left( ......
git fatal detected dubious ownership in repository 的解决方法
我换了一台电脑,将旧电脑的硬盘换到新电脑上;我装了双系统,切换到另一个系统时;我发现了 git 代码仓库无法执行 git 命令,不断报错 fatal: detected dubious ownership in repository at 'C:\lindexi\Code\Foo' is owned ......
class-dump使用报错 Cannot find offset for address 0x88000000010af973 in stringAtAddress:
从链接https://github.com/AloneMonkey/MonkeyDev/blob/master/bin/class-dump中重新下载class-dump拖入到路径:/usr/local/bin ......
The 2022 ICPC Asia Hangzhou Regional Programming Contest
The 2022 ICPC Asia Hangzhou Regional Programming Contest No Bug No Game #include<bits/stdc++.h> using namespace std; #define endl "\n" #define int lon ......
The 2022 ICPC Asia Nanjing Regional Contest
链接:[https://codeforces.com/gym/104128](https://codeforces.com/gym/104128) ## A. Stop, Yesterday Please No More ```cpp #include "bits/stdc++.h" using n ......
The 18th Heilongjiang Provincial Collegiate Programming Contest
链接:[https://codeforces.com/gym/104363](https://codeforces.com/gym/104363) ## A. Magic Computer ```cpp #include "bits/stdc++.h" using namespace std; us ......
CSS filter drop-shadow All In One
CSS filter drop-shadow All In One
CSS 滤镜投影
背景虚化
光晕特效
......
The 10th Shandong Provincial Collegiate Programming Contest
链接:[https://codeforces.com/gym/104459](https://codeforces.com/gym/104459) ## A ```cpp #include "bits/stdc++.h" using namespace std; using i64 = long l ......
The 17th Chinese Northeast Collegiate Programming Contest
链接:[https://codeforces.com/gym/104366](https://codeforces.com/gym/104366) ## A. Cask Effect ```cpp #include "bits/stdc++.h" using namespace std; using ......
Learn Git in 30 days——第 12 天:认识 Git 物件的相对名称
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 在认识了 Git 物件的「绝对名称」与「参照名称」后,最后我们来介绍 Git 版控过程中也很常用到的「相对名称」 ......
安装cocoapods: Error installing cocoapods: The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.6. Try installing it with `gem install activesupport -v 6.1.7.6`问题解决
问题描述: 在终端命令行安装cocoapods时,可能出现如下问题: Error installing cocoapods: The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1 ......
How to fix waitForFunction TimeoutError of puppeteer All In One
How to fix waitForFunction TimeoutError of puppeteer All In One
page.waitForFunction 超时错误
TimeoutError: Waiting failed: 30000ms exceeded
......
[LeetCode] 2433. Find The Original Array of Prefix Xor
You are given an integer array pref of size n. Find and return the array arr of size n that satisfies: pref[i] = arr[0] ^ arr[1] ^ ... ^ arr[i]. Note ......
安装weditor时提示“ UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 645: illegal multibyte sequence”
问题: 安装weditor时提示“ UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 645: illegal multibyte sequence” 解决 : 方法一:解决方法一设置用户或者系统变量: 方法二:设置 ......
大模型时代的推荐系统Recommender Systems in the Era of Large Language Models (LLMs)
文章地址:https://arxiv.org/abs/2307.02046 笔记中的一些小实验中的模型都是基于GPT-3.5架构的ChatGPT模型。 本文主要讲述了比较具有代表性的方法利用LLM去学习user和item的表示,从预训练、微调和提示三个范式回顾了近期用于增强推荐系统的LLM先进技术, ......
error: The following untracked working tree files would be overwritten by merge
错误内容如下: error: The following untracked working tree files would be overwritten by merge: xxx/xxx/xxx/xxx/xxx/xxx/xxx.java Please move or remove them b ......
Learn Git in 30 days——第 11 天:认识 Git 物件的一般参照与符号参照
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 在认识了 Git 物件的「绝对名称」后,接下来就要介绍 Git 版控过程中最常用到的「参照名称」。 认识物件的参 ......
The 2nd Universal Cup. Stage 1: Qingdao
### G #### Description 给定一个数列,每次ban一个位置,在每次ban之前,求连续子序列逆序对数的最大值,强制在线。(6s)$n\leq10^5, \sum n \leq10^6$ #### Solution 先考虑用权值线段树来维护区间逆序对数,不难支持在原数列前后加或删除一 ......
Python mro() method All In One
Python mro() method All In One
MRO: Method Resolution Order / 方法解析顺序
......
The colossus
BY SYLVIA PLATH I shall never get you put together entirely, Pieced, glued, and properly jointed. Mule-bray, pig-grunt and bawdy cackles Protected fro ......
Chrome’s Headless Browser Puppteer All In One
Chrome’s Headless Browser Puppteer All In One
Chrome 无头浏览器 Puppeteer
......
Minimum Edge Weight Equilibrium Queries in a Tree
Minimum Edge Weight Equilibrium Queries in a Tree There is an undirected tree with n nodes labeled from 0 to n - 1. You are given the integer n and a ......