自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

生活不易,且行且珍惜!Peace And Coding!

欲买桂花重载酒,终不似,少年游!

原创 懒人刷网课的正确姿势(油猴Tampermonkey脚本自动刷课自动答题)

懒人福利 首先有些人不想学怎么用脚本,满足你们,压缩包解压之后直接登录即可。戳我下载 脚本已经集成好了,登录即可刷课。章节测试还会自动答题呦,正确率高达97%呦。 油猴及脚本安装 油猴的脚本不知可以刷网课,还可以某云的快速下载,功能十分强大,各种人发明的轮子,我们用起来真香。 我们用360举例...

2020-02-27 23:03:09 14414 19

原创 CF思维联系– Codeforces-989C C. A Mist of Florescence

C. A Mist of Florescencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output As the boat drifts down...

2020-02-29 21:06:53 165 0

原创 Eclipse 全部快捷一览表(具TM全)

1. 编辑快捷键 编辑快捷键 介绍 psvm + Tab 生成main方法 sout + tab 生成输出语句 Ctrl+X / Ctrl + Y 删除一行 Ctrl+D 复制一行 Ctrl+/ 或 Ctrl+Shift+/ 注释代码 Ctrl + Z 撤销 ...

2020-02-29 03:02:17 325 0

转载 VS Code 全部快捷键一览表(巨TM全)

常用 General 按 Press 功能 Function Ctrl + Shift + P,F1 显示命令面板 Show Command Palette Ctrl + P 快速打开 Quick Open Ctrl + Shift + N 新窗口/实例 New window/i...

2020-02-29 02:50:16 232 0

原创 数学--数论-- AtCoder Beginner Contest 151(组合数+数学推导)好题(๑•̀ㅂ•́)و✧

思路统计最大值出现的次数,和最小值出现的次数。虽然是每次都是MAX-MIN,我们先求MAX的和,然后再求MIN的和,做差。 这次代码写的真的很漂亮 题目地址: #include <bits/stdc++.h> using namespace std; template <type...

2020-02-29 02:39:18 182 0

原创 CF思维联系– Codeforces-988C Equal Sums (哈希)

You are given k sequences of integers. The length of the i-th sequence equals to ni. You have to choose exactly two sequences i and j (i≠j) such tha...

2020-02-28 23:19:23 159 0

原创 计算机组成原理--计算机性能指标(附考研题目)

一、计算机性能指标: CPU:吞吐量,响应时间,CPU时钟周期,主频,CPI,CPU执行时间,MIPS,MFLOPS,GFLOPS,TFLOPS,PFLOPS,利用率,处理机字长; 其他:总线宽度。 1.吞吐量 一个系统的吞度量(承压能力)与一个请求request对CPU的消耗、外部接口、IO等密...

2020-02-28 19:00:10 525 0

原创 CF思维联系– Codeforces-987C - Three displays ( 动态规划)

It is the middle of 2018 and Maria Stepanovna, who lives outside Krasnokamensk (a town in Zabaikalsky region), wants to rent three displays to highli...

2020-02-28 02:04:26 202 0

原创 CF思维联系–CodeForces - 225C. Barcode(二路动态规划)

Desciption You’ve got an n × m pixel picture. Each pixel can be white or black. Your task is to change the colors of as few pixels as possible to obt...

2020-02-28 00:55:21 171 0

原创 CF思维联系–CodeForces -224C - Bracket Sequence

A bracket sequence is a string, containing only characters “(”, “)”, “[” and “]”. A correct bracket sequence is a bracket sequence that can be transf...

2020-02-28 00:27:02 176 0

原创 CF思维联系–CodeForces - 223 C Partial Sums(组合数学的先线性递推)

You've got an array a, consisting of n integers. The array elements are indexed from 1 to n. Let's determine a two step operation like that...

2020-02-27 00:48:12 166 0

原创 数学--组合数学--当C(n,m)中n固定m++的递推模板

ll power(ll a, ll b, ll p) { ll ans = 1 % p; for (; b; b >>= 1) { if (b & 1) ans = ans * a % p; a =...

2020-02-27 00:36:42 156 0

原创 CF思维联系–CodeForces - 222 C Reducing Fractions(数学+有技巧的枚举)

To confuse the opponents, the Galactic Empire represents fractions in an unusual format. The fractions are represented as two sets of integers. The p...

2020-02-26 15:15:05 170 0

原创 CF思维联系–CodeForces-217C C. Formurosa(这题鸽了)

The Bytelandian Institute for Biological Research (BIBR) is investigating the properties of two species of bacteria, named simply 0 and 1. Even under...

2020-02-26 00:07:15 166 0

原创 codeforce 1311E. Construct the Binary Tree (构造,就是个模拟)

You are given two integers n and d. You need to construct a rooted binary tree consisting of n vertices with a root at the vertex 1 and the sum of de...

2020-02-25 23:02:24 306 0

原创 codeforce 1311 D. Three Integers

In one move, you can add +1 or −1 to any of these integers (i.e. increase or decrease any number by one). You can perform such operation any (possibl...

2020-02-25 01:35:01 211 0

原创 codeforce 1311 C. Perform the Combo 前缀和

You want to perform the combo on your opponent in one popular fighting game. The combo is the string s consisting of n lowercase Latin letters. To pe...

2020-02-25 01:14:36 271 0

原创 Codeforce1311B. WeirdSort (冒泡排序)

You are given an array a of length n. You are also given a set of distinct positions p1,p2,…,pm, where 1≤pi<n. The position pi means that you can ...

2020-02-25 01:12:51 393 0

原创 Codeforce 1311A Add Odd or Subtract Even

Add Odd or Subtract Even time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given two ...

2020-02-25 01:08:43 268 0

原创 Codeforces Round 623(Div. 2,based on VK Cup 2019-2020 - Elimination Round,Engine)D. Recommendations

VK news recommendation system daily selects interesting publications of one of n disjoint categories for each user. Each publication belongs to exact...

2020-02-24 03:16:53 397 3

原创 Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) C. Restoring

C. Restoring Permutation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a seq...

2020-02-24 03:12:28 266 0

原创 Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) B. Homecoming

After a long party Petya decided to return home, but he turned out to be at the opposite end of the town from his home. There are n crossroads in the...

2020-02-24 03:10:33 351 0

原创 Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) A Dead Pixel

讨论坏点的左右上下的矩形大小。 #include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { long lo...

2020-02-24 03:07:28 242 0

原创 ACMer退役记(ACM的心路历程)

在这里我要水一篇博客,目的是感谢一个人,我希望和你一起进步一起努力,我是因为喜欢ACM所以开始做ACM,而不是为了拿奖。虽然都走了,但是ACM没有走,学习算法的日子,AC的日子很快乐,我想我会继续努力,无论结果如何,差点丢掉了初心,谢谢你。 加油干! 人对现实的无力,是因为能力不足,如果真的有能力...

2020-02-24 02:57:58 1438 3

原创 Codeforces Round #622 (Div. 2) 1313 C1

C1. Skyscrapers (easy version) time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output This is an ea...

2020-02-23 20:01:27 534 0

原创 Codeforces Round #622 (Div. 2) 1313 A

Tired of boring office work, Denis decided to open a fast food restaurant. On the first day he made a portions of dumplings, b portions of cranberry ...

2020-02-23 19:57:21 267 0

原创 Codeforces Round #622 (Div. 2) 1313 B Different Rules

Nikolay has only recently started in competitive programming, but already qualified to the finals of one prestigious olympiad. There going to be n pa...

2020-02-23 19:52:40 3082 11

原创 我想solo自己一个人!

区域赛之后你就该走了,现在你告诉我,没精力不打了,我真谢谢你! 今年就TM的没有一点舒心的地方! 父母分居, 队友出走, 队伍解散, 白天家里两个外甥很吵, 鼻窦炎复发, 喜欢的妹子也追不到, 整夜失眠,逃避现实! ...

2020-02-23 11:58:09 193 1

原创 CF--思维练习--CodeForces - 216C - Hiring Staff (思维+模拟)

A new Berland businessman Vitaly is going to open a household appliances’ store. All he’s got to do now is to hire the staff. The store will work sev...

2020-02-22 03:46:44 187 0

原创 CF--思维练习-- CodeForces - 215C - Crosses(思维题)

There is a board with a grid consisting of n rows and m columns, the rows are numbered from 1 from top to bottom and the columns are numbered from 1 ...

2020-02-22 02:09:16 155 0

原创 CF思维联系--CodeForces -214C (拓扑排序+思维+贪心)

Furik and Rubik love playing computer games. Furik has recently found a new game that greatly interested Rubik. The game consists of n parts and to c...

2020-02-21 23:24:10 167 0

原创 ACM思维题训练 Section A

题目地址: 选题为入门的Codeforce div2/div1的C题和D题。 题解: A:CF思维联系–CodeForces - B:CF思维联系–CodeForces - C:CF思维联系–CodeForces - D:CF思维联系–CodeForces - E:CF思维联系–CodeForce...

2020-02-21 03:18:37 214 0

原创 CF--思维练习--CodeForces - 220C Little Elephant and Shifts (STL模拟)

The Little Elephant has two permutations a and b of length n, consisting of numbers from 1 to n, inclusive. Let’s denote the i-th (1 ≤ i ≤ n) element...

2020-02-21 03:04:09 171 0

原创 CF--思维练习--CodeForces - 221C-H - Little Elephant and Problem (思维)

The Little Elephant has got a problem — somebody has been touching his sorted by non-decreasing array a of length n and possibly swapped some element...

2020-02-21 02:35:12 209 0

原创 CF--思维练习--CodeForces - 219C Color Stripe (思维)

A colored stripe is represented by a horizontal row of n square cells, each cell is pained one of k colors. Your task is to repaint the minimum numbe...

2020-02-21 02:13:23 191 0

原创 CF思维联系--CodeForces - 218C E - Ice Skating (并查集)

题目地址:24道CF的DIv2 CD题有兴趣可以做一下。 Bajtek is learning to skate on ice. He’s a beginner, so his only mode of transportation is pushing off from a snow drift...

2020-02-21 01:32:30 162 0

原创 数学--数论--HDU--5878 Count Two Three 2016 ACM/ICPC Asia Regional Qingdao Online 1001

I will show you the most popular board game in the Shanghai Ingress Resistance Team. It all started several months ago. We found out the home address...

2020-02-20 23:22:41 145 0

原创 总是想逃避不想去面对(又是发牢骚的一天)

如果你也是有梦想喜欢ACM的道友,可以加一下我,我们一起努力。 我觉得我认识的最强的山理工的去划水了,问个题,讨论个题,也没人回复。 一道题卡3天也根本做不出来,没人讨论,因为网上题解写的不清楚,就没人去做,也没人会做,讨论你麻痹! TMD,为什么会这样。 身边没有人更强了,不会就是真的不会,我真...

2020-02-20 23:08:10 169 0

原创 数学--数论--HDU6919 Senior PanⅡ【2017多校第九场】

Description 给出一个区间[L,R][L,R],问该区间中所有以KK作为最小因子(大于11的)的数字之和 Input 第一行输入一整数TT表示用例组数,每组用例输入三个整数L,R,KL,R,K(1≤L≤R≤1011,2≤K≤1011)(1≤L≤R≤1011,2≤K≤1011) Outpu...

2020-02-20 22:53:33 142 0

原创 数学--数论--Alice and Bob (CodeForces - 346A )推导

It is so boring in the summer holiday, isn't it? So Alice and Bob have invented a new game to play. The rules are as follows. First, they get a ...

2020-02-18 01:11:54 144 0

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