自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Codeforces Round #481 (Div. 3) F. Mentors

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int maxn = 2e5 + 1...

2018-05-17 16:35:00 73

转载 Codeforces Round #481 (Div. 3) E. Bus Video System

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; int main() { int n,...

2018-05-15 14:51:00 111

转载 Codeforces Round #481 (Div. 3) D. Almost Arithmetic Progression

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; c...

2018-05-14 22:26:00 70

转载 Prime Path------poj3126

题目大意: 给定两个素数a b,求a变幻到b需要几步 并且变幻时只有一个数字不同,并且是素数 解题思路: 因为是四位的素数,所以先对素数打表,然后BFS,每次进入队列的是八个只有一个数...

2018-02-04 13:40:00 84

转载 Crossing River------POJ - 1700

这道题的贪心的方向有二: 一、每次过河的时间尽量小 二、过河的次数尽量少。 本题的两种策略是 一、耗时最短的人一直在船上来回送人 二、耗时最短的来回送船,然后俩耗时最长的一起走。 a[2]+a[1]+a[i]+a[2],这是a[i-1]和a[i]过河 (实现:最短送...

2018-01-31 22:19:00 72

转载 How Many Tables------HDU - 1213

这是一道并查集的水题,其实就是找集合个数 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; i...

2018-01-31 20:50:00 80

转载 Anastasia and pebbles------CodeForces - 789A

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; int main() { int n,...

2018-01-30 15:06:00 128

转载 The Monster------CodeForces - 787A

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; ...

2018-01-30 14:38:00 73

转载 最短路------HDU2544

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; //无限大 const int INF = 9...

2018-01-29 22:02:00 90

转载 棋盘问题------poj1321

#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> using namespace std; int vis[10]; char mp[10...

2018-01-29 21:55:00 79

空空如也

空空如也

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

TA关注的人

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