自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 银川problem B

比赛时只想到了n^3 队友间推完还以为是指数级的就没再推 待补吧 (1e4 #include <bits/stdc++.h> using namespace std; #define pb push_back #define fast ios_base::sync_with_stdio(0), cin.tie(0),cout.tie(0) long long dp[1010][1010],ans[1010][1010],n; long long a[1010]; int main() {.

2021-05-18 14:27:25 181

原创 Codeforces Round #679 题目 :Shurikens

#include<bits/stdc++.h> using namespace std; #define pb push_back #define fast ios_base::sync_with_stdio(0), cin.tie(0),cout.tie(0) int n; int a[100010],b[100010],c[200010],vv[200010]; int vis[200010];string s; int main() { cin>>n;int v;...

2020-10-26 19:08:12 269

原创 第十一届蓝桥杯大赛软件类省赛第二场 C/C++ 大学 B 组 H题 子串分值和

#include<bits/stdc++.h> using namespace std; #define pb push_back #define fast ios_base::sync_with_stdio(0), cin.tie(0),cout.tie(0) string s; int a[30][100010]; int now[30],vis[30]; int main() { int ans=0,ss=0; cin>>s;int n=s.size(); ..

2020-10-22 18:52:14 680

原创 Codeforces Round #640 (Div. 4)

好长时间没来博客了 cf第一次div4 写个题解吧 嘿嘿 A. Sum of Round Numbers time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A positive (strictly greater than zero) integer is called round if it is of the form d00…0. In oth

2020-05-10 15:51:07 531

原创 Codeforces Round #610 (Div. 2)

A. Temporarily unavailable time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Polycarp lives on the coordinate axis Ox and travels from the point ...

2019-12-25 01:26:52 379

原创 Codeforces Round #609 (Div. 2)

A. Equation time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Let’s call a positive integer composite if it has at least one divisor other than ...

2019-12-25 01:23:33 428

原创 Educational Codeforces Round 78 (Rated for Div. 2)

A. Shuffle Hashing time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Polycarp has built his own web service. Being a modern web service it inclu...

2019-12-20 02:27:10 329

原创 Codeforces Global Round 6

C. Diverse Matrix time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Let a be a matrix of size r×c containing positive integers, not necessarily d...

2019-12-18 20:12:31 240

原创 Codeforces Round #608 (Div. 2)

A. Suits time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A new delivery of clothing has arrived today to the clothing store. This delivery cons...

2019-12-16 13:11:02 525

原创 Codeforces Round #607 (Div. 2)

A. Suffix Three time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output We just discovered a new data structure in our research group: a suffix three! ...

2019-12-15 15:32:34 947 1

原创 Codeforces Round #606 (Div. 2, based on Technocup 2020 Elimination Round 4)

A. Happy Birthday, Polycarp! time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Hooray! Polycarp turned n years old! The Technocup Team sincerely ...

2019-12-14 22:13:42 668

原创 Codeforces Round #605 (Div. 3)

A. Three Friends time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Three friends are going to meet each other. Initially, the first friend stays ...

2019-12-13 00:59:30 646

原创 A Simple Problem with Integers POJ - 3468(区间更新 区间修改裸题)

You have N integers, A1, A2, … , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the su...

2019-12-04 21:55:26 129

原创 I Hate It HDU - 1754 (单点修改维护区间最大值)(树状数组与线段树)

很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0<N<=200000,0<M<5000 )...

2019-12-03 19:12:26 182

原创 Educational Codeforces Round 77 (Rated for Div. 2)

A. Heating time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Several days ago you bought a new house and now you are planning to start a renovati...

2019-11-28 01:24:48 277

原创 Jungle Roads POJ - 1251(最小生成树)

The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, s...

2019-11-27 21:00:56 168

原创 Frogger POJ - 2253(最短路变形)

Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists’ sun...

2019-11-27 17:39:51 157

原创 Til the Cows Come Home POJ - 2387

Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b...

2019-11-27 17:33:08 241

原创 ## PAT A1076

PAT A1076 图的遍历 #include <bits/stdc++.h> using namespace std; struct node { int data; int layer; }; vector<node> m[1010]; bool vis[1010]={false}; int n,L,x; int bfs() { int cnt=...

2019-10-31 17:37:51 206

空空如也

空空如也

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

TA关注的人

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