gitpod aks for

Educational Codeforces Round 110 (Rated for Div. 2) Array Reodering

给一个长为 \(n\) 的数组 \(a\) 。 定义一对 \(pair(i, j)\) 是 \(good\) 的当且仅当 \(1 \leq i < j \leq n\) 且 \(gcd(a_i, 2 \cdot a_j) > 1\) 。 如果你可以以任意顺序重排数组 \(a\) ,找到最多的 \(g ......
Educational Codeforces Reodering Array Round

Educational Codeforces Round 156 (Rated for Div. 2)

Educational Codeforces Round 156 (Rated for Div. 2) A. Sum of Three 解题思路: 如果\(n \leq 6 或 n =9\),无解。 若\(n \% 3 == 0,t = \lfloor\frac{3}{n}\rfloor\): 若\ ......
Educational Codeforces Round Rated 156

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

一 背景 跑了一份centos容器,想装一下net-tools, 报如下错误 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorl ......

练习记录-cf-Educational Codeforces Round 156 (Rated for Div. 2)(A-C)

好久没打了 还是就出了三道 不过还好没掉分 A. Sum of Three 就是问能不能把一个数拆成三个不同的 且都不能被三整除的数 我的思路就是拆成1+2+一个大于等于4的数 如果拆了后另一个数是%3==0 那么我拆成1+4它肯定就不被整除 然后判下相同 #include<bits/stdc++. ......

vscode git提交——报please enter the commit message for your changes....

如图: 其大意就是:在提交之前,需要给此次提交添加一些备注信息 1. git命令操作 git命令为:git commit -m "备注信息" 2. vscode操作 1)点击 + :暂存更改 2)在消息输入框中添加 备注信息(关键地方) 3)一定要输入 备注信息 后,再点击 提交,不然就会报“ple ......
changes message vscode commit please

np.expand_dims: AxisError: axis 4 is out of bounds for array of dimension 4

np.expand_dims axis = 0时,[]加在最外面 axis = 1时,给每一行都加[] axis = 2时,给每一个元素都加[] x_train = np.expand_dims(X, axis=4) AxisError Traceback (most recent call las ......

Implicit Autoencoder for Point-Cloud Self-Supervised Representation Learning论文阅读

2023 ICCV Implicit Autoencoder for Point-Cloud Self-Supervised Representation Learning论文阅读,思想很妙,该笔记非常简要 ......

LY1380 [ 20231009 NOIP 模拟赛 T1 ] AK 神

题意 给定长度为 \(n\) 的序列 \(S\)。 \(A\),\(B\) 两人轮流取连续 \(k\) 个数,保证 \(n \equiv 1\pmod k\)。 \(A\) 使最终数字更小,\(B\) 使最终数字更大。 问取到数的和。 Sol 直接考虑每次选哪些数,怎么选显然是不好做的。 不难发现 ......
模拟赛 20231009 1380 NOIP LY

Personalized Transformer for Explainable Recommendation论文阅读笔记

Personalized Transformer for Explainable Recommendation论文阅读笔记 摘要 ​ 自然语言生成的个性化在大量任务中都起着至关重要的作用。比如可解释的推荐,评审总结和对话系统等。在这些任务中,用户和项目ID是个性化的重要标识符。虽然Transfome ......

10_for循环

1.用法 1 #!/bin/bash arr=(aa bb cc) for i in ${arr[@]}; do echo $i done 2.用法 2 #!/bin/bash for j in a b c d; do echo $j done 3.用法 3 #!/bin/bash for m in ......
for 10

An unhandled exception occurred: Could not find the implementation for builder @angular-devkit/build-ng-packagr:build See ……

原文链接:https://www.longkui.site/error/angular-cli/4795/ 调试一个新的angula项目时,报上面的错误。断定基本是版本不匹配导致的。 看了看网上的一些信息说是升级一下 angular-cli的版本就行了。 但是升级后也不好用,后来发现, 不是要升级, ......

This kernel requires an x86-64 CPU, but only detected an i686CPU. Unable to boot – please use a kernel appropriate for your CPU.

原文链接:https://www.longkui.site/program/other/i686/4759/ 0.背景 买了一台小电脑,STAR TC-8080 型号,想给他装个Linux系统。 给他装Ubuntu 18的时候,开始报错: This kernel requires an x86-64 ......
kernel CPU appropriate detected requires

maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories

原文链接:https://www.longkui.site/error/maven-default-http-blocker-http-0-0-0-0-blocked-mirror-for-repositories/4659/ 0.背景 给新电脑配置maven环境,然后执行mvn clean ins ......

The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see

The build restored NuGet packages. Build the project again to include these packages in the build 在 Visual Studio 2022 中构建代码时出现此错误。 严重性 代码 说明 项目 文件 行 ......
packages build information the restored

for循环php:使用For循环来提高你的PHP编程技能

示例示例for循环是一种常用的循环控制结构,用于重复执行一段代码片段。在PHP中,for循环可以使用以下语法格式:for初始化; 条件; 增量) {for循环是一种常用的循环控制结构,用于重复执行一段代码片段。在PHP中,for循环可以使用以下语法格式:for (初始化; 条件; 增量) { // ......
技能 for For PHP php

GNNExplainer: Generating Explanations for Graph Neural Networks论文阅读笔记

GNNExplainer: Generating Explanations for Graph Neural Networks论文阅读笔记 摘要 ​ 因为结合图结构和特征信息会导致复杂的模型,解释GNN的预测没有得到解决,所有提出了一个GNNExplainer,是第一个通用的,与模型无关的方法,可以 ......

Could not resolve all dependencies for configuration ':testCompileClasspath'. Using insecure protocols with repositories, without explicit opt-in, is unsupported.

Gradle init.gradle文件参数错误导致的Gradle加载失败 1 allprojects { 2 repositories { 3 mavenLocal() 4 maven { name "Alibaba" ; url "https://maven.aliyun.com/reposit ......

解决Windows下pip安装bertopic报错:Failed building wheel for hdbscan

在安装bertopic的过程中,遇到了Failed building wheel for hdbscan,我先去网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/#hdbscan 下载了hdbscan‑0.8.28‑cp310‑cp310‑win_amd64 ......
bertopic building Windows hdbscan Failed

论文阅读:A Lightweight Knowledge Graph Embedding Framework for Efficient Inference and Storage

ABSTRACT 现存的KGE方法无法适用于大规模的图(由于存储和推理效率的限制) 作者提出了一种LightKG框架: 自动的推断出码本codebooks和码字codewords,为每个实体生成合适的embedding。 同时,框架中包含残差模块来实现码本的多样性,并且包含连续函数来近似的实现码字的 ......

Go - Making Arrays and Slices Safe for Concurrent Use

Problem: You want to make arrays and slices safe for concurrent use by multiple goroutines. Solution: Use a mutex from the sync library to safeguard t ......
Concurrent Arrays Making Slices Safe

Step by Step setting up Operation mode for beginers

I had searched on the above key words on scn and coul not find any document when I needed. So thought of sharing the steps I followed for setting up o ......
Step Operation beginers setting mode

A Visual Guide to Using BERT for the First Time

https://jalammar.github.io/a-visual-guide-to-using-bert-for-the-first-time/ A Visual Guide to Using BERT for the First Time Translations: Chinese, Kor ......
Visual Guide First Using BERT

Go - Defining Metadata for Struct Fields

Problem: You want to define metadata to describe the struct fields. Solution: Use struct tags to define metadata and the reflect package to access the ......
Defining Metadata Fields Struct for

v-for

1. 作用:基于数据循环,多次渲染整个元素(可以遍历 数组、对象、数字 ......) 2. 遍历数组语法:v-for = "(item, index) in 数组名" (item:遍历时的每一项;index:遍历时的下标) 如果不需要下标,则可以简写:v-for = "item in 数组名" e ......
v-for for

编写脚本,使用for和while分别实现192.168.0.0/24网段内,地址是否能够ping通,若ping通则输出"success!",若ping不通则输出"fail!"

for方法: [14:20:07 root@centos8 ~]#cat ping_for.sh#!/bin/bash​# # Copyright (C) 2021 IEucd Inc. All rights reserved.## 文件名称:ping_for.sh# 创 建 者:TanLiang# ......
通则 quot ping 网段 脚本

Vue3 Div 与 v-for 的配合应用,超出自动带滚动条

效果图 代码 <li > <a href="javascript:;" class="IndRea flexC Huans"><i></i><p>当前会议 [ 0 ]</p></a> <div style="height:80%;overflow:auto;"> <div v-for="(dataI ......
v-for Vue3 Vue Div for

[已解决] Compilation error ptxas fatal : Value ‘sm_30‘ is not defined for option ‘gpu-name‘

在用cmake编译cuda程序时,总是报Compilation error ptxas fatal : Value ‘sm_30’ is not defined for option ‘gpu-name’问题,也是折腾了好久,感谢这位小哥的解决方案,亲试无误,万分感谢~ 转载:https://blo ......
Compilation gpu-name defined option error

This generated password is for development use only. Your security configuration must be updated before running your application in production.问题的解决

问题描述 在我加上spring-boot-starter-security的依赖之后,启动项目报出来这样的错误: 问题解决 在启动类的注解上,加上这么一段代码就ok啦! 启动成功: ......

C语言:‘for‘ loop initial declarations are only allowed in C99 mode

求最大公约数之 穷举法 mistake: because: 只允许在C99模式下使用‘for’循环初始化声明 solution:不在for()中初始化生命变量 ......
declarations allowed initial 语言 loop