hong kong programming the

The 2020 ICPC Asia Shenyang Regional Programming Contest M. United in Stormwind

Preface 先补一下这周一队友VP的ICPC2020沈阳,这场由于我在补作业+晚上有大物实验,因此只参与了中间一个多小时,纯口胡了几个简单题 因为我没怎么参与所以过的其它题就不写补题+写博客了,毕竟队友会等于我会 那么就主要把我比赛时看了但没啥思路的M补了,AI祁神好像在补那我就不管了,后面好像 ......

The 2023 CCPC Guilin J. The Phantom Menace

好劲的字符串题,然而实际上和字符串没啥关系 比赛的时候全队应该就只有我没读过题面,感觉如果让我看到这个重排+循环同构第一反应肯定是枚举偏移量+Hash比较前后缀,因为我字符串算法高级的不会只会一个Hash,说不定能搞出点想法 但今天补的时候发现写起来细节还是挺多的,尤其是有向图的欧拉回路和无向图版本 ......
The Phantom Guilin Menace 2023

502 Bad Gateway Registered endpoint failed to handle the request

502 Bad Gateway: Registered endpoint failed to handle the request. 502 Bad Gateway错误是一种常见的HTTP错误,通常表示代理服务器在尝试访问上游服务器时遇到了问题,因此无法返回请求的内容。这个错误消息表明,代理服务器无 ......
Registered endpoint Gateway request failed

uniapp运行启动时候出现 The current application is running in a custom debugging base....

突然出现这个,原来是uniapp说的自定义基座,是在app/src/main/assets/data/dcloud_contro.xml中 需要修改hbuilder标签中的debug的值,如果为true则会出现标题的提示,如果改为false则不会出现标题提示的弹窗 <hbuilder debug=" ......
application debugging current running 时候

二、什么是“The Fenix Project”?

软件架构风格从大型机(Mainframe),发展到了多层单体架构(Monolithic),到分布式(Distributed),到微服务(Microservices),到服务网格(Service Mesh),到无服务(Serverless)……你能发现,在技术架构上确实呈现出“从大到小”的发展趋势。 ......
Project Fenix The

数据结构与算法 | 动态规划算法(Dynamic Programming)

上一篇文末已经提到了记忆化搜索是动态规划(Dynamic Programming)的一种形式,是一种自顶向下(Top-Down)的思考方式;既然动态规划有自顶向下(Top-Down)的递归形式,自然想到对应的另外一种思考方式自底向上( Bottom-Up )。什么是自底向上的思考?不空谈理论... ......

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker-compose up -d 安装docker环境,提示一下错误:docker-compose 命令没发现。 docker compse up -d 报错: Cannot connect to the Docker daemon at unix:///var/run/docker.soc ......
daemon docker the connect running

The 2023 CCPC Guilin H. Sweet Sugar

CF评测机最近读入怎么这么慢啊,一样的算法,\(10^6\)的输入用scanf和关流cin都TLE飞,一定要用fread快读才能卡过可海星 这个题比赛的时候最后封榜后徐神和祁神就在一起冲这个题,给出的贪心的思路其实也是对的,但没有想到可以分奇偶性然后DP来验证 当然也和我占着机子写不出C红温有关,最 ......
Guilin Sweet Sugar 2023 CCPC

Chen Shuo's Practical Network Programming - TTCP Lecture代码注释

下面是C语言版本的TTCP,主要注释的是void receive(const Options& opt);函数,负责在服务器接收客户端发送的数据: // muduo/examples/ace/ttcp/ttcp_blocking.cc #include ... // 接受新的TCP连接 static ......
注释 Programming Practical Network Lecture

vcpkg install polyclipping:x64-windows Could not locate a manifest (vcpkg.json) above the current working directory. This vcpkg distribution does not have a classic mode instance.

错误信息表明 vcpkg 在当前工作目录及其父目录中找不到 vcpkg.json 文件,因此无法确定要安装的库。 这可能是因为你执行 vcpkg install 命令的位置不在包含 vcpkg.json 文件的项目目录中。 以下是解决方法: 确保在包含 vcpkg.json 的项目目录中运行命令: ......

The 2023 CCPC Guilin C. Master of Both IV

Preface 妈的期中考终于结束了,感觉在区域赛前抽出将近两周的时间不训练去复习有点得不偿失的说 现在终于有时间来补一下题,其实手头要补的题还挺多的,一个是上次CCPC桂林打完后可做的一些题,另一个是这段时间零碎地练习的两场 一场台湾的网络赛有两个题赛时卡着都没写出来,过两天补一下;另一个就是这周 ......
Guilin Master 2023 CCPC Both

browsermob-proxy-2.1.4启动失败,报错ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='D:\server.log' mode='w' encoding='cp936'>for a helpful error message.

server.log文件错误信息: Running BrowserMob Proxy using LittleProxy implementation. To revert to the legacy implementation, run the proxy with the command-li ......

2023 China Collegiate Programming Contest Shenzhen Site

目录写在前面AFGLIEMK写在最后 写在前面 补题地址:vjudge。 以下按照场上过题顺序排序。 首银。 比游记更早出来,没想到吧。 游记链接:留坑。 A 场上先开的这道。 直觉是考虑先全部区间加直到最小值,然后将非最小值全单点加,再重复上述过程。然而会被递增序列卡掉。 瓶颈在于单点加太多了。大 ......

mkfs.xfs报错 mkfs.xfs: /dev/new/new_box appears to contain an existing filesystem (ext4). mkfs.xfs: Use the -f option to force overwrite.

在设置逻辑卷文件类型时候报错 mkfs.xfs: /dev/new/new_box appears to contain an existing filesystem (ext4). mkfs.xfs: Use the -f option to force overwrite. 上面是说目标分区,已 ......
mkfs xfs filesystem new overwrite

umount 报错umount: /new_room: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))

挂载逻辑卷后,尝试更新逻辑卷的文件系统 [root@server lost+found]# umount /new_room/ umount: /new_room: target is busy. (In some cases useful info about processes that use ......
umount processes new_room device target

The song of Academia

In the realm of intellect, where thoughts intertwine, Intellectual pursuits, in brilliance, they shine. A young scholar, impulsive, yet keen to refine ......
Academia song The of

[P1518 [USACO2.4] 两只塔姆沃斯牛 The Tamworth Two]的解题思路

P1518 [USACO2.4] 两只塔姆沃斯牛 The Tamworth Two 初始思路 利用数字1~4代表方向; 利用两个循环来实现两个角色的行为,通过每一步break实现两个角色的同步。 由于题目本意是同步,而我这实质上是分步(牛在前Farmer John在后),所以用Farmer John ......
Tamworth 思路 USACO2 P1518 USACO

The A to Z of ... from the Economist

The A to Z of economicsEconomic terms, from “absolute advantage” to “zero-sum game”, explained to you in plain Englishhttps://www.economist.com/econom ......
Economist from The the to

[题解] CF1051F The Shortest Statement

The Shortest Statement 给一张 \(n\) 个点 \(m\) 条边的无向连通图,保证 \(m - n \le 20\),\(q\) 次询问求两个点间的最短路。 \(n, m, q \le 10^5\)。 由于边数只比点数多 20,所以如果我们建出这张图的一棵生成树,那么非树边至 ......
题解 Statement Shortest 1051F 1051

nvidia-smi报错:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver更优解决方案

Ubuntu 18.04系统中,某次pip安装后发现这个问题,有人说是因为系统内核升级造成的,从解决方案来看,系统内核升级更可信。解决方案参考了https://blog.csdn.net/dou3516/article/details/130593616,但更简洁。解决方案是DKMS安装NVIDIA ......

Xcode 展示failed to prepare the device for development

首先打开链接找到https://gitee.com/Han0/iOSDeviceSupport 找到对应版本,解压 其次打开终端 输入 open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Device ......
development prepare failed device Xcode

The Pktgen Application

Pktgen, (Packet Gen-erator) is a software based traffic generator powered by the DPDK fast packet processing framework. Pktgen(数据包生成器)是一款基于软件的流量生成器,由 ......
Application Pktgen The

"Academy of Management" and the journal "Academy of Management Perspectives"

Academy of Management 555 Pleasantville Road, Suite N200 Briarcliff Manor, NY 10510-8020, USA Phone: +1 (914) 326-1800 Fax: +1 (914) 326-1900 Academy ......
quot Management Academy Perspectives journal

The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission,iphone手机video标签报错

The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission,在当前上下文中,用户代理或平台不允许该请求 ......
the user permission platform possibly

Dynamic Programming

目录热身198. 打家劫舍62. 不同路径63. 不同路径 II213. 打家劫舍 II337. 打家劫舍 III 参考:https://cloud.tencent.com/developer/article/1692068 热身 斐波那契数列 递归求解 自顶向下,存在大量的重复计算 动态规划 保存 ......
Programming Dynamic

关于.UnsupportedClassVersionError: org/example/Merge has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of 问题的彻底解决

问题描述 之前我是改变了本机上面的JDK的版本17为8; 然后这次我再次尝试MapReduce运行就报错了; 尝试更改IDEA中的环境JDK为8,还是一直显示这个错误~~~ 问题解决 根本问题在pom.xml文件这里,里面有定义我们使用的JDK的版本, 只要将其中的17改为8,然后再运行,就没有问题 ......

Programming Abstractions in C阅读笔记:p196

《Programming Abstractions in C》学习第63天,p196总结。涉及到编程之外的知识,依然是读起来很费劲,需要了解作者在书中提到的人物(Edouard Lucas)、地点(Benares)、神话传说(Brahma)等等。虽然深知自己做不到对人文知识,历史知识精通,但也希望能 ......
Abstractions Programming 笔记 p196 196

[LeetCode] 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance

There are n cities numbered from 0 to n-1. Given the array edges where edges[i] = [fromi, toi, weighti] represents a bidirectional and weighted edge b ......
the Neighbors Threshold LeetCode Distance

mount: /home/vi/book: wrong fs type, bad option, bad superblock on /dev/sdd1, missing codepage or helper program, or other error.

mount: /home/vi/book: wrong fs type, bad option, bad superblock on /dev/sdd1, missing codepage or helper program, or other error. 解决方法: sudo mount -t ......
superblock bad codepage missing program

题解 AT_codefestival_2016_final_f【Road of the King】

注意到当前移动到的位置并不重要,重要的是经过的点数和 \(1\) 所在强连通分量大小,因此把它们放进状态里:设 \(f_{i,j,k}\) 表示进行 \(i\) 次移动,经过了 \(j\) 个不同的点,此时 \(1\) 所在的强连通分量大小为 \(k\) 的方案数。 考察下一次移动到的点的情况: 没 ......