自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(61)
  • 收藏
  • 关注

原创 markdown latex

$$\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k} \\\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\\frac{\partial X}{...

2020-01-22 15:59:08 121

原创 在Linux下编译执行了一次C程序

2019-11-24 20:31:02 117

原创 C# 中的事件 —— C# 学习笔记

事件 事件 (event) 是一种使类或对象能够提供通知的成员。事件的声明与字段类似,不同的是事件的声明包 含 event 关键字,并且类型必须是委托类型。在声明事件成员的类中,事件的行为就像委托类型的字段(前提是该事件不是抽象的并且未声明访问器)。该字段存储对一个委托的引用,该委托表示已添加到该事件的事件处理程序。如果尚未添加事件 处理程序,则该字段为 null。 List<T&...

2019-11-04 20:49:05 130

原创 C# 中的类型 —— C# 学习笔记

C# 中的类型有两种:值类型 (value type) 和引用类型 (reference type)。值类型的变量直接包含它们的数据,而引用类型的变量存储对它们的数据的引用,后者称为对象。对于引用类型,两个变量可能引用同 一个对象,因此对一个变量的操作可能影响另一个变量所引用的对象。对于值类型,每个变量都有它们 自己的数据副本(除 ref 和 out 参数变量外),因此对一个变量的操作不可...

2019-11-03 21:43:34 121

原创 图论 - 教科书般的亵渎 - from jisuanke

环境里有 n 个怪物,他们的生命值用一个正整数表示。现在,你可以使用两种魔法,对怪物进行攻击。当怪物的生命值小于等于 0 时,他便被消灭了。魔法箭,对摸个生物造成 k 点伤害,对一个生物最多使用一次,但没有使用次数限制。亵渎,对所有生物造成一点伤害,如果杀死了某个生物,则继续自动重新使用该法术。只能主动使用一次,且必须最后使用。请问,最多能消灭多少个怪物?亵渎法术最多能释放几次?输入格式第一行两个...

2018-04-05 14:37:01 648

转载 C - Heart

#include using namespace std;#define REP(i, a, b) for (int i = (a), i##_end_ = (b); i < i##_end_; ++i)#define debug(...) fprintf(stderr, __VA_ARGS__)#define mp make_pair#define x first#define

2018-02-28 22:24:41 272

原创 动态规划 - 区间DP - NOIP 乘积最大

#include #include #include #include #include #include #include #include #include #include using namespace std;#define REP(i, a, b) for (int i = (a), i##_end_ = (b); i < i##_end_; ++i)#de

2017-08-12 20:55:39 352

原创 LCA 问题的倍增解法

洛谷 P3379 lca 模板题#include#include#include#include#includeusing namespace std;int n,m,r,a,b;int deep[500005],fa[500005],f[500005][35];bool vis[500005];vector > v(500005); void dfs

2017-08-07 11:22:54 222

原创 Cow Exhibition

#include#define INF 0x3f3f3f3fusing namespace std;int n,v[105],w[105],dp[200005],ans = -INF;int main(){ for (int i=0;i<=200000;i++) dp[i] = -INF; dp[100000] = 0; cin >> n; for (in

2017-06-03 13:22:18 241

原创 USACO - Chapter2 Section 2.3 Controlling Companies

Controlling Companies

2017-05-21 16:58:10 340

原创 USACO - Chapter2 Section 2.4 - Bessie Come Home

Bessie Come Home

2017-05-20 16:04:32 285

原创 USACO - Chapter2 Section 2.4 - Cow Tours

Cow Tours

2017-05-20 15:31:44 193

原创 USACO - Chapter2 Section 2.4 - The Tamworth Two

The Tamworth Two

2017-05-20 15:26:17 240

原创 USACO - Chapter2 Section 2.3 - Longest Prefix

Longest Prefix

2017-05-18 21:27:55 182

原创 USACO - Chapter2 Section 2.2 - Party Lamps

Party Lamps

2017-05-17 13:37:33 213

原创 USACO - Chapter2 Section 2.2 - Runaround Numbers

Runaround Numbers

2017-05-16 22:15:47 269

原创 USACO - Chapter2 Section 2.2 - Subset Sums

Subset Sums

2017-05-16 19:26:23 241

原创 USACO - Chapter2 Section 2.2 - Preface Numbering

Preface Numbering

2017-05-16 17:19:43 304

原创 USACO - Chapter2 Section 2.2 - Hamming Codes

Hamming Codes

2017-05-16 16:51:36 266

原创 USACO - Chapter2 Section 2.2 - Healthy Holsteins

Healthy Holsteins

2017-05-16 13:06:25 245

原创 USACO - Chapter2 Section 2.1 - Sorting a Three-Valued Sequence

Sorting a Three-Valued Sequence

2017-05-16 12:57:11 222

原创 USACO - Chapter2 Section 2.2 - Ordered Fractions

Ordered Fractions

2017-05-15 21:37:31 202

原创 USACO - Chapter2 Section 2.1 - The Castle

The Castle

2017-05-15 21:05:56 287

原创 USACO - Chapter1 Section 1.5 - Superprime Rib

Superprime Rib

2017-05-14 23:11:27 218

原创 USACO - Chapter1 Section 1.5 - Prime Palindromes

Prime Palindromes

2017-05-14 23:08:06 226

原创 USACO - Chapter1 Section 1.5 - Number Triangles

Number Triangles

2017-05-14 22:59:09 156

原创 USACO - Chapter1 Section 1.4 - Mother's Milk

Mother’s Milk

2017-05-14 22:55:37 202

原创 USACO - Chapter1 Section 1.4 - Arithmetic Progressions

Arithmetic Progressions

2017-05-14 22:50:12 217

原创 USACO - Chapter1 Section 1.3 - Wormhole

Wormhole

2017-05-13 23:02:53 218

原创 USACO - Chapter1 Section 1.3 - Ski Course Design

Ski Course Design

2017-05-13 19:03:28 238

原创 USACO - Chapter1 Section 1.3 - Combination Lock

Combination Lock

2017-05-13 17:18:03 551

原创 USACO - Chapter1 Section 1.3 - Prime Cryptarithm

Prime Cryptarithm

2017-05-13 16:39:23 322

原创 USACO - Chapter1 Section 1.3 - Barn Repair

Barn Repair

2017-05-13 16:32:22 227

原创 USACO - Chapter1 Section 1.3 - Mixing Milk

Mixing Milk

2017-05-13 16:18:50 191

原创 USACO - Chapter1 Section 1.2 - Dual Palindromes

Dual Palindromes

2017-05-13 16:08:52 188

原创 USACO - Chapter1 Section 1.2 - Palindromic Squares

Palindromic Squares题目描述回文数是指从左向右念和从右向左念都一样的数。如12321就是一个典型的回文数。给定一个进制B(2<=B<=20,由十进制表示),输出所有的大于等于1小于等于300(十进制下)且它的平方用B进制表示时是回文数的数。用’A’,’B’……表示10,11等等输入输出格式输入格式: 共一行,一个单独的整数B(B用十进制表示)。输出格式: 每行两个B进制的符合要

2017-05-13 15:49:28 233

原创 USACO - Chapter1 Section 1.2 - Transformations

Transformations

2017-05-13 13:36:26 229

原创 USACO - Chapter1 Section 1.2 - Milking Cows

Milking Cows

2017-05-13 13:14:33 175

原创 USACO - Chapter1 Section 1.1 - Broken Necklace

Broken Necklace

2017-05-13 13:07:42 329

原创 USACO - Chapter1 Section 1.1 - Friday the Thirteenth

Friday the Thirteenth

2017-05-13 13:00:28 296

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除