programming yourself teach years
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 ......
2023-2024 ICPC German Collegiate Programming Contest (GCPC 2023)
# Preface 好久没队里一起训练了就周末约了队友去机房VP了一场,同时终于学会了撬机房门这一核心技术 这场总体打的还行,但主要是B全队集体想复杂导致最后没调出来,J徐神写的维护啥的都没问题就是算答案的时候没想清楚,本来可以出11题的 # A. Adolescent Architecture 2 ......
CF500G New Year Running
# solution 首先求出两条路径 $(A,B)$ $(C,D)$ 的交路径,记作 $(S,T)$ 。 那么假设相遇在某个节点 $u$,相遇的条件可以写成下面的式子: $$k_1t_1+r_1+d_1 s=k_2t_2+r_2+d_2s$$ 其中: $t_1,t_2$ 为周期,$r_1,r_2$ ......
Programming abstractions in C阅读笔记:p139-p143
《Programming Abstractions In C》学习第55天,p139-p140,总结如下: # 一、技术总结 ## 1.文件I/O操作 文件I/O操作可以分为一下这些步骤: (1)声明文件指针对象。 ```c File *infile; ``` (2)打开文件 fopen()。打开文 ......
Programming abstractions in C阅读笔记:p138
《Programming Abstractions In C》学习第54天,p138,总结如下: # 一、技术总结 ## 1.stdio.h 3.4小节介绍“The standard I/O library”,涉及I/O操作最常用的接口是stdio.h,我们经常用到里面的printf函数。 ## 2 ......
Proj CDeepFuzz Paper Reading: An Extensive Study on Pre-trained Models for Program Understanding and Generation
## Abstract ## 1. Intro ## 2. Background ### 2.1 Program Understanding and Generation Tasks ### 2.2 NL-PL Pre-Trained Models ![](https://img2023.cnblo ......
Proj CDeepFuzz Paper Reading: SyRust: automatic testing of Rust libraries with semantic-aware program synthesis
## Abstract 背景: 1. unsafe能够绕开rust type system 2. rust libraries中常有许多unsafe keyword 本文:SyRust Task: fuzz Rust library APIs Challenge: synthesize well-t ......
Programming abstractions in C阅读笔记:p132-p137
《Programming Abstractions In C》学习第53天,p132-p137,3.2小节“strings”总结如下: # 一、技术总结 3.2小节介绍了字符串的用法: 1.C语言是没有字符串(string)这种数据类型的,但是实际的场景中又很需要这种数据类型,那怎么表示字符串呢?有 ......
Programming abstractions in C阅读笔记:p130-p131
《Programming Abstractions In C》学习第52天,p130-p131,总结如下: # 一、技术总结 ## 1. pig latin game 通过pig latin game掌握字符复制,指针遍历等操作。 ```c /* * 输入:字符串,这里采用书中坐着自定义的getli ......
Programming abstractions in C阅读笔记:p127-p129
《Programming Abstractions In C》学习第51天,p127-p129,总结如下: # 一、技术总结 ## 1. string library 掌握常用函数如strlen,strcpy用法。 ## 2.buffer overflow(缓冲区溢出) (1)什么是buffer? ......
How to choose your first programming language All In One
How to choose your first programming language All In One
如何选择你的第一门编程语言
......
Programming abstractions in C阅读笔记:p123-p126
《Programming Abstractions In C》学习第50天,p123-p126,总结如下: # 一、技术总结 ## 1.notaion 这也是一个在计算机相关书籍中出现的词,但有时却不是那么好理解,因为它可以指代很多对象,这里做一个记录。示例:p124。 In C, you can ......
The 2023 ICPC China Shaanxi Provincial Programming Contest
链接:[https://qoj.ac/contest/1290](https://qoj.ac/contest/1290) ## A 表达式板子。 $O(|s|)$。 ```cpp #include "bits/stdc++.h" using namespace std; using i64 = l ......
Programming abstractions in C阅读笔记: p118-p122
《Programming Abstractions In C》学习第49天,p118-p122,总结如下: # 一、技术总结 ## 1.随机数 (1)seed p119,"The initial value--the value that is used to get the entire proc ......
20230818 CHAPTER 4 Controlling Program Flow 程序流程控制
Unconditional Branch The simplest branch instruction is B label 无条件分支跳转 有符号数为负则设置N标志,否则clear 结果为0 设置此标志,否则clear 加法中溢出了则设置此标志,减法不需要借也就是结果不为负则设置,移位中保存最后 ......
Programming abstractions in C阅读笔记: p114-p117
《Programming Abstractions in C》学习第48天,p114-p117,总结如下: 一、技术总结 主要通过random number介绍了随机数的相关用法,interface示例(random.h),client program示例(craps.c)。 ``` #inc ......
The 13th Northeast Collegiate Programming Contest
## **Problem B. Balanced Diet** 其实就是对每种糖果从大到小的排序后,计算前缀和后再 $O(n)$ 处理,由于最多只有 $n$ 个糖果,所以最大复杂度是 $O(nlogn)$。对于题目给的每种糖果的限制 $limit$ ,就把当前小于 $limit$ 的贡献加到 $ma ......
the-c-programming-language-reading-notes
The C Programming Reading Notes Created: 2023-06-06T15:59+08:00 Published: 2023-08-16T12:14+08:00 Categories: C | ReadingNotes 我看的是第二版,解决了初学 C 语言和 OS ......
Programming abstractions in C阅读笔记p111-p113: boilerplate
《Programming Abstractions In C》学习第47天,p111-p113,总结如下: 一、技术总结 1.boilerplate ```c /* * File: random.h * Version: 1.0 * Last modified on Fri Jul 22 16:44 ......
.NET 7.0 Program.cs访问json配置文件
Program.cs中配置如下: //引用Microsoft.Extensions.Configuration; var Configuration = new ConfigurationBuilder() .SetBasePath(System.IO.Directory.GetCurrentDir ......
题解 CF379D New Year Letter
### 思路 提供一种比较容易想到的做法。 拿到题看数据范围发现都很小,所以放心大胆地暴力。 容易发现 $s_i$ 中 `AC` 的个数等于 $s_{i-2}$ 中 `AC` 的个数加 $s_{i-1}$ 中 `AC` 的个数再加上两者拼接处可能有的一个 `AC`。 所以 $s_1$ 和 $s_2$ ......
Programming abstractions in C阅读笔记:p107-p110
《Programming Abstractions In C》学习第46天,p107-p110,3.1小节——“The concept of interface”,总结如下: 一、技术总结 1.client p108,调用library的program称为client。 2.interface p1 ......
Programming abstractions in C阅读笔记:p91-p106
《Programming Abstractions In C》学习第45天,p91-p102,完成第二章内容学习。总结如下: 一、技术总结 1.垃圾回收 p91,"Some language, including Java support a system for dynamic allocatio ......
SMU Summer 2023 Contest Round 11(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2022))
# [SMU Summer 2023 Contest Round 11](https://codeforces.com/group/L9GOcnr1dm/contest/466605)(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest ......
Programming abstractions in C阅读笔记:p88-p90
《Programming Abstractions In C》学习第44天,p88-p90总结。 一、技术总结 1.内存分配 内存分配可以分为:static allocation、automatic allocation、dynamic allocation。内存分配使用的函数为:malloc()。 ......
Paper Reading: Multitree Genetic Programming With New Operators for Transfer Learning in Symbolic Regression With Incomplete Data
针对数据集存在缺失值的问题,本文提出了一种基于多树 GP(MTGP) 的迁移学习方法 pMTGPDA,用于将知识从完整的源域转移到不完整的目标域中。首先在源域的数据集上训练多个 SR 模型,通过模型中的训练细节计算源域的特征和实例的权重作为先验知识。然后将提取的权重知识用于基于 MTGP 的转换,构... ......
Programming abstractions in C阅读笔记:p84-p87
《Programming Abstractions In C》学习第43天,p84-p87总结。 一、技术总结 1.record record也称为structure(结构体),是一种数据结构。record里面的成员称为record的field。对于record,需要其基本用法:定义、声明、fiel ......
UESTC 2023 Summer Training #23 for div2/2022-2023 ACM-ICPC Latin American Regional Programming Contest
# Preface 今天这场签到巨多,和昨天那场形成了鲜明的对比 但可惜后盘的时候我划了太久的水,最后接了B题然后没调出来成为战俘 最气的是赛后发现原来是没注意输出格式,本来可以说一遍过的题结果没写过,属实可惜,就当长教训了 **以后一定要尤其注意输入输出格式** # A. Asking for M ......
Learning by teaching --- 费曼学习法
世界上存在成千上万种学习法,如果上天只让我掌握一种,那一定就是“费曼学习法”。 ## 介绍 费曼学习法是由诺贝尔物理学奖获得者理查德·费曼提出的一种学习方法,其核心思想是将所学内容用自己的话表达出来,以此检验自己对知识的掌握程度。 费曼学习法可以简化为四个单词:**Concept**、**Teach ......