NOT
Day24 DoWhile循环
DoWhile循环 对于while语句而言,如果不满足条件,则不能进入循环。但有时候我们需要即使不满足条件,也至少执行一次。 do...while循环和 while循环相似,不同的是,do...while循环至少会执行一次。 do{ //代码语句 }while(布尔表达式); While和do-Wh ......
Day25 For循环
For循环 for循环语句是支持迭代的一种通用结构,是最有效、最灵活的循环结构。 for循环执行的次数是在执行前就确定的。语法格式如下: for(初始化;布尔表达式;更新(迭代)} { //代码语句 } 在idea中 直接输入 100.for 回车即自动填写 for (int i = 0; i ......
实验三-电子公文传输系统1-个人贡献
实验三-电子公文传输系统1-个人贡献 1 简述你完成的工作 身为组长,组织组员相互配合,合理高效完成任务。 参与组内文档的撰写工作。 参与后端设计的代码编写以及前端设计的代码编写 2 你们小组总共的代码行数,你贡献的代码行数?相关代码链接? 总共代码行数为55352行,其中大部分是gitee上的代码 ......
大数分析(1)——BEAF
写在前面:本分析相当于习题,不保证正确性(虽然我会去对一下) 定义 BEAF 基础版——线性数阵 数阵的第一个为底数(base,\(a\)),第二个为指数(prime,\(b\)),之后第一个非1的数为驾驶(pilot),驾驶前的一个数是副驾驶(copilot),副驾驶之前的所有被称为乘客(pass ......
19.Some people say:Face-to-face classes are a better option for college students than online classes. Present possible counterarguments to the claim, rebut it and reaffirm the argument.
Round 1: Presenting Possible Counterarguments Speaker 1 (Student A): Hello, everyone! The claim that face-to-face classes are a better option than onl ......
20.Explain how the following reasoning fails to address the complexity of the issue involved, and rebut it. “Sanya is warm all year round and has beautiful beaches,
Round 1: Identifying the Failure in Reasoning Speaker 1 (Student A): Hello, everyone! Let's kick off our discussion by examining the reasoning: "Sanya ......
C++学习笔记四:变量与数据类型(布尔型)
今天来整理一下布尔型变量的使用方法 1. 声明和初始化 一个布尔类型的变量占据1 Byte空间,数值0代表false,其他非0数值代表true bool red_light {false}; bool green_light{true}; std::cout << "sizeof(bool) : " ......
18.In the academic world, there is a popular phrase "publish or perish." Academics, therefore, always work hard to keep themselves academically alive through publications.
Round 1: Expressing Initial Opinions on "Publish or Perish" Speaker 1 (Student A): Hello, everyone! The phrase "publish or perish" is quite intense, i ......
vue3中自定义ref实现防抖
import { customRef } from "vue"; /** * @description 自定义ref实现防抖 * @param {String} value * @param {Number} delay * @returns */ export const debounceRef ......
Java实现对Hadoop HDFS的API操作
1.配置Hadoop的Windows客户端 Hadoop 配置Windows 客户端 2.新建Maven项目[略] 3.添加依赖 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client --> <dependen ......
serdes与PCIE的区别
serdes和PCIE是两种非常常见的总线。因为PCIE也是差分信号传输,所以做硬件时比较难区别PCIE和serdes的具体差异点。 两者之间的区别主要表现在以下几点: 1.PCIE使用了SERDES的技术,PCIE有距离的版本与速率限制比如1.0 2.5G,2.0 5GT/S,8GT/S,16GT ......
ABC312 复盘
ABC312 复盘 At 链接 LG 链接 A Chord 思路解析:水题,一个 if 即可 #include<bits/stdc++.h> using namespace std; string s; int main() { cin >> s; if(s == "ACE" || s == "BD ......
ABC301 复盘
ABC301 复盘 At 链接 LG 链接 [ABC301A] Overall Winner 思路解析:从头开始遍历字符串,遇到一个字符就给对应的一方加分,输出第一个胜场大于 \(\lceil n / 2\rceil\) 的一方。 #include<bits/stdc++.h> using name ......
Home-图片懒加载指令实现
场景和指令用法 场景:某些网站首页通常会很长,用户不一定能访问到页面靠下面的图片,这类图片通过懒加载优化手段可以做到,只有进入视口区域才发送图片请求 指令用法: <img v-img-lazy="item.picture"/> 在图片img身上绑定指令,该图片只有正式进入到视口区域时才会发送图片网络 ......
生成函数
使用场景:无穷级数与函数的对应。 无穷级数:一个无限的数列的和。 生成函数的应用: 求组合 求排列 普通型生成函数: \(g(x)=\sum_{i=0}^\infty a_ix_i\) 常见的普通型生成函数: \(\sum_{i=0}^\infty x^i=\frac{1}{1-x}\) 牛顿二项式 ......
MongoDB的聚合笔记
1,聚合 聚合(aggregate)主要用于计算数据,类似sql中的sum()、avg()。 常用的表达式如上图。 1.1,aggregate 语法 语法: db.集合名称.aggregate([{管道:{表达式}}]) 常用的管道: 1.2,$match 和 $group 往集合 items 中先 ......
作业
import requests url = 'https://www.bing.com'for i in range(20): response = requests.get(url) print(f"第{i+1}次访问") print(f'Response status: {response.st ......
14.Do you have a tentative plan for you reading and/or research writing project for this semester? Create a timetable with specific goals, objectives, ways to realize them and timelines.
Round 1: Discussing the Importance of a Tentative Plan Speaker 1 (Graduate Student A): Greetings, everyone. Today, our topic revolves around having a ......
15.Please retell the parable of The Blind men and An Elephant. What is the moral of the parable? What can we learn from the parable when it comes to critical thinking?
Round 1: Retelling the Parable and Extracting the Moral Speaker 1 (Student A): Hey everyone! So, let's dive into the parable of "The Blind Men and the ......
16.What are the basic elements of an argument according to Toulmin Model? How do you evaluate evidences with the intellectual standards?
Round 1: Understanding the Basic Elements of Toulmin Model Speaker 1 (Student A): Hello, everyone! Let's start by discussing the basic elements of the ......
CF848C Goodbye Souvenir 题解
原题链接:CF848C。 题意:给定一个序列 \(a\),维护两个操作。 操作一:将 \(a_x\) 修改为 \(y\) 操作二:对于区间 \(l,r\) 中出现的每一种数 \(x\),求出 \(\sum f(x)\)。 \(f(x)\) 表示区间 \(l\) 到 \(r\) 内 \(x\) 最后一 ......
AT_cf17_final_j Tree MST 题解
题意:给定一颗 \(n\) 个点的树,点 \(i\) 有权值 \(a_{i}\),边有边权。现在有另外一个完全图,两点之间的边权为树上两点之间的距离加上树上两点的点权,求这张完全图的最小生成树。 首先有一个很显然的暴力,把完全图中每两点之间的边权算出来,然后跑一边最小生成树,时间复杂度 \(O(n^ ......
P2487 [SDOI2011] 拦截导弹 题解
题意:求出一个序列 \(q\) 的最长二维不上升子序列,以及求出每个数出现在这个最长二维不上升子序列中的概率。 很显然,三维偏序问题可以用 cdq 分治来优化 dp。 对于第一问,直接把这道题的 \(n^{2}\) dp 优化到 \(\log^{2}\) 即可。具体来讲,设 \(l_{i}\) 表示 ......
P7735 [NOI2021] 轻重边 题解
是一道树剖好题,之前听 lsl 讲过一点,于是很快就做出来了。 题意:有一个 \(n\) 个节点的树,最开始的时候所有边都是轻边,维护两个操作: 操作一:将 \(u\) 到 \(v\) 的路径中经过的所有点的邻边变为轻边,再将这条路径上的边变为重边。 操作二:求出 \(u\) 到 \(v\) 这条路 ......
一个简易的vim下c语言开发环境配置 vimrc很短
vimrc修改的部分短到可以随口背下来 没有一些复杂的提示或者自动补全,只有基本的自动补全和换行操作,用来写一些玩具一样的小程序足够了。比较适合用来在OJ上刷题用。 vim &g++ & gdb,就能解决非常多的问题了,整个流程都可以在terminal下完成,不失为一种高效的方法。 ......
定时器训练(UAV2101~UAV2105)
例子001、51单片机定时器训练 下面是一份基本的 51 定时器控制代码#include <reg52.h> // 8051 头文件 // 定义时钟频率为 12MHz #define FOSC 12000000UL // 定义波特率为 9600 #define BAUDRATE 9600 // 定义 ......
第四次作业
这个作业属于哪个课程 https://edu.cnblogs.com/campus/zjlg/23rjjsjc 这个作业的目标 成立小组,确立小组名称、成员、分工、口号以及小组准备完成的项目 姓名-学号 <卢宇豪>-<2021339930011>、<杨梁>-<2021330301131>、<郭逸凡> ......
13.How do you understand the statement: Clear thinking is the key to clear writing? 你如何理解这句话:清晰的思维是清晰写作的关键?
Round 1: Interpreting "Clear Thinking is the Key to Clear Writing" Speaker 1 (Analyst A): Greetings, everyone. Our topic today is the statement, "Clea ......
wordpress整合 Prism.js实现代码高亮 切图网自用
Prism.js是一个简约漂亮的代码高亮插件,就冲简单 好用就值得一用,如何把它整合到wordpress,附代码,也是切图网自己再用的。 代码添加到主题的functions.php中 // 自定义代码高亮按钮 function appthemes_add_quicktags() { if (wp_s ......
P4313 文理分科
题意 给定一个 \(n * m\) 的矩阵。 你需要将其中每一个元素分成两个集合。 当一个元素的集合为 \(A\),获得 \(a_{i, j}\)。集合为 \(B\),获得 \(b_{i, j}\)。 当一个元素与她相邻的所有元素都在同一个集合,获得 \(c_{i, j}\) 或 \(d_{i, j ......