programming yourself teach years
*** These critical programs are missing or too old: compiler
001、问题 *** These critical programs are missing or too old: compiler 002、查看c编译器版本 [root@PC1 build]# gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8 ......
*** These critical programs are missing or too old: make compiler
001、问题 *** These critical programs are missing or too old: make compiler 002、查看当前的make版本 [root@PC1 build]# make --version 003、make官网:http://ftp.gnu.or ......
freee Programming Contest 2023(AtCoder Beginner Contest 310)题解
[点我看题](https://atcoder.jp/contests/abc310/tasks) A - Order Something Else 直接比较$P$和$Q+min(D_i)$,输出较小值即可。 点击查看代码 ``` #include #define rep(i,n) for(int i ......
PromptLang:A simple prompt-based programming language specifically designed for use inside GPT prompts
PromptLang:A simple prompt-based programming language specifically designed for use inside GPT prompts ......
The 2019 ICPC China Shaanxi Provincial Programming Contest(2019陕西省赛)
## B. Grid with Arrows 并查集一下。 ```cpp #include "bits/stdc++.h" using namespace std; using i64 = long long; struct UnionFind { int n; vector f; UnionFin ......
CF500C New Year Book Reading 题解
这一题是一道比较复杂的贪心(~~对于本蒟蒻来说~~) 假如两本书 $a$ 和 $b$,先看 $a$ 再看 $b$,那么我们开始的时候就把 $a$ 放在上面。 这样的话,我们看 $a$ 时就不需要搬动 $b$,看 $b$ 的时候会搬动 $a$。 而一开始如果把放在上面,看 $a$ 的时候需要搬动 $b ......
【vue-问题】vue : 无法加载文件 D:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本
【vue-问题】vue : 无法加载文件 D:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。解决方法:①:管理员方式运行PowerShell,输入get-ExecutionPolicy。如果它回复Restricted,表示是禁止的②: ......
KEYENCE Programming Contest 2021 E Greedy Ant
[洛谷传送门](https://www.luogu.com.cn/problem/AT_keyence2021_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/keyence2021/tasks/keyence2021_e "AtCoder ......
Eclipse mbedded cdt 中添加Erase, Program功能
使用eclipse mbedded cdt作为嵌入式IDE来开发嵌入式程序是很多开发人员的选项之一, 但是eclipse并不完美, 有一些功能没有按钮或者选项来实现, 比如在非调试状态下的下载程序, 擦除flash(sector erase 或者 chip erase)等功能 这里提供一种实现以上功 ......
2022-2023 ICPC Brazil Subregional Programming Contest(B,D,F,I,L,N)
# 正题 题目链接:[https://codeforces.com/gym/103960](https://codeforces.com/gym/103960) # B-Fun with Stones【博弈论,数位dp】 ## 题目大意 三个堆的取石子游戏,第 $i$ 个堆石子个数可能是 $[L_i ......
ABAP 泛型编程(Generic Programming) 在实际工作中的一个例子
ABAP(Advanced Business Application Programming)泛型编程是一种在 ABAP 语言中使用的编程范式,它允许编写可以处理多种数据类型的通用代码。泛型编程的目的是提高代码的复用性、灵活性和可维护性。通过使用泛型编程,开发人员可以编写一种通用的算法或数据结构,而 ......
Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning---reading
# Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning reading - 攻击目标 - 安全破坏 - 完整性破坏: 逃避检测,而不影响正常的系统运行 - 可用性破坏: 使得合法用户不能正常使用系统 - 隐私 ......
【848】Data filtering in R programming
ref: R语言data.frame常用操作 ref: Keep rows that match a condition The filter() function is used to subset a data frame, retaining all rows that satisfy you ......
「解题报告」CF500G New Year Running
来个垃圾做法。 首先这个树没啥用,我们只需要找到两条路径的交与方向即可。分类讨论即可得到,略掉了。 把距离找出来之后,我们可以将运动路径写成序列,那么我们现在相当于有两个分成五段的序列,其中有两端为 $1 \to d$ 与 $d \to 1$。我们枚举几种情况,分别是 $1 \to d, 1 \to ......
docker报错:Error response from daemon: driver failed programming external connectivity on endpoint likeshop-nginx
重启docker-compose时,nginx服务报错。 报错信息: Error response from daemon: driver failed programming external connectivity on endpoint likeshop-nginx (f0a809481f5 ......
How to Implement Drag and Drop Between Your Program and Explorer
How to Implement Drag and Drop Between Your Program and Explorer Michael Dunn Rate me: 4.90/5 (105 votes) 14 Dec 2002 A step-by-step description of ho ......
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
Restful ABAP Programming(简称RAP)旨在找到 SPA 和 MPA 之间的`最佳平衡点`。 RAP 丰富了 JSON 本身或初始 OData 请求的元数据中的响应,并且视图和模型是先前在 CDS 中定义的后台 annotation: ![](https://img-blog. ......
基于DEAP进化算法库的Genetic Programming实践学习
因为可能之后会采用GP的方式来解决ATFM相关的问题,所以我就去学习了一下GP的使用方法,DEAP库的教程还是很清晰明了的,在此附上链接 DEAP_documentation 我主要跟着简称完成了符号回归、偶校验、垃圾邮件检测三个例子,前两个是Loosely Typed GP,最后一个是Strong ......
JavaScript program to check if a given year is leap year Javascript判断是否是闰年
A year is leap year if following conditions are satisfied: Year is multiple of 400. Year is multiple of 4 and not multiple of 100. Approach: Get the v ......
QNX-9—QNX官网文档翻译—Programming Overview
注:翻译网址QNX Software Development Platform --> Programming --> Programmer's Guide --> Programming Overviewhttps://www.qnx.com/developers/docs/7.1/index.h ......
Counting principle and Program Testing
# Reference https://www.shuxuele.com/data/basic-counting-principle.html # 基本计数原理 若有m个方法去做一件事,及n个方法去做另一件事, 则有m×n个方法去做这两件事。 # 应用场景 这个原理只适合在所有选择都是独立时才适用。 ......
【C】专家编程 (Expert C Programming) 阅读笔记
第一章 C:穿越时空的迷雾 1 p22 ~ 24 ANSI C 有此问题。 “安静”的类型转换原则:当执行算术运算时,操作数的类型如果不同,就会发生转换。数据类型一般朝着浮点精度更高,长度更长的方向转换,整形术如果转换为 singed 不会丢失信息,就转换为 signed,否则转换为 unsigne ......
关于xfs文件系统-在操作系统中遇到两个uuid一样的-挂载报错-wrong fs type, bad option, bad superblock on /dev/nvme2n1, missing codepage or helper program, or other error
当操作系统中,出现了两个uuid一样的文件系统(笔者这里是xfs),那么默认就只能挂载成功一个 [root@qq-5201351 ~]# blkid |grep xfs |grep 1ea9e784-0692-403c-bed1-bf34a5a86a57 /dev/nvme1n1: UUID="1e ......
Dynamic Programming
Description Usually, One-dimensional dynamic planning problem, the parameter is always $n$, the result is similar to number sequence $a_n$, or $f(n)$( ......
UNIQUE VISION Programming Contest 2023 New Year (AtCoder Beginner Contest 287) ABCDE
# [UNIQUE VISION Programming Contest 2023 New Year (AtCoder Beginner Contest 287)](https://atcoder.jp/contests/abc287) ## A - Majority ### Problem Sta ......
Running Additional Programs at Boot Time (开机启动)
https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-run-boot.html The /etc/rc.d/rc.local script is executed by the init ......
Programming: elimination array duplicate
JavaScript 1. splice let arr = [1, 2, 3, 5, 6, 4, 3, 2, 1, 1, 2, 3, 4, 5] for(let i = 0; i < arr.length - 1; ++i) { for(let j = i + 1; j < arr.length; ......
Programming: Sort
JavaScript let arr = [8, 4, 3, 2, 6, 7, 1, 5, 9] function quickSort(arr) { console.log(arr) if(arr.length <= 1) return arr let midIndex = parseInt(arr ......
2022 Shanghai Collegiate Programming Contest
# A. Another A+B Problem 暴力枚举出所有的情况,然后特判一下 ```cpp #include using namespace std; set res; int t; string a , b , c = "????????"; #define f(d) ((d[0]-'0' ......