自定义博客皮肤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 78

原创 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 146

原创 第十一届蓝桥杯大赛软件类省赛第二场 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 533

原创 Codeforces Round #640 (Div. 4)

好长时间没来博客了 cf第一次div4 写个题解吧 嘿嘿A. Sum of Round Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA 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 332

原创 Codeforces Round #610 (Div. 2)

A. Temporarily unavailabletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp lives on the coordinate axis Ox and travels from the point ...

2019-12-25 01:26:52 272

原创 Codeforces Round #609 (Div. 2)

A. Equationtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet’s call a positive integer composite if it has at least one divisor other than ...

2019-12-25 01:23:33 268

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

A. Shuffle Hashingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has built his own web service. Being a modern web service it inclu...

2019-12-20 02:27:10 226

原创 Codeforces Global Round 6

C. Diverse Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet a be a matrix of size r×c containing positive integers, not necessarily d...

2019-12-18 20:12:31 131

原创 Codeforces Round #608 (Div. 2)

A. Suitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA new delivery of clothing has arrived today to the clothing store. This delivery cons...

2019-12-16 13:11:02 416

原创 Codeforces Round #607 (Div. 2)

A. Suffix Threetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe just discovered a new data structure in our research group: a suffix three!...

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

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

A. Happy Birthday, Polycarp!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHooray! Polycarp turned n years old! The Technocup Team sincerely ...

2019-12-14 22:13:42 508

原创 Codeforces Round #605 (Div. 3)

A. Three Friendstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThree friends are going to meet each other. Initially, the first friend stays ...

2019-12-13 00:59:30 505

原创 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 56

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

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

2019-12-03 19:12:26 85

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

A. Heatingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSeveral days ago you bought a new house and now you are planning to start a renovati...

2019-11-28 01:24:48 158

原创 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 83

原创 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 82

原创 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 140

原创 ## 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 104

空空如也

空空如也

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

TA关注的人

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