• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
巅峰主公
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年9月20日
BELLMEN-FORD普通
摘要: #include <iostream> using namespace std; int m, n, u[100010], v[100010], w[100010];int check;int dis[100010]; int main(){ cin >> n >> m; for(int i = 1 阅读全文
posted @ 2017-09-20 18:51 一个天才 阅读(280) 评论(0) 推荐(0)
poj3373--Changing Digits(DFS+剪枝///记忆化)
摘要: 题目链接:点击打开链接 题目大意:给出一个n和一个k 求m 要求1、m要和n相同的位数 要求2、m要整除k 要求3、如果1和2满足,那么m要和n有尽量少的不同位 要求4、如果1、2、3满足,要使m尽量的小 简单的一个深搜,但是直接被要求吓蒙,,,,, 要求1和2直接可以在搜索时判断,要求3可以在深搜 阅读全文
posted @ 2017-09-20 17:54 一个天才 阅读(218) 评论(0) 推荐(0)
POJ滑雪
摘要: 滑雪 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 97172 Accepted: 36843 Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑 阅读全文
posted @ 2017-09-20 17:54 一个天才 阅读(187) 评论(0) 推荐(0)
数组模拟链表
摘要: 1 #include 2 3 using namespace std; 4 5 int a[100010], r[100010]; 6 int n, len, t; 7 8 int main(){ 9 cin >> n; 10 for(int i = 1; i > a[i]; 11 len = n; 12 for(int i = 1; i... 阅读全文
posted @ 2017-09-20 17:53 一个天才 阅读(191) 评论(0) 推荐(0)
栈
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int n, top, mid, next; 7 char a[100010], s[100010]; 8 9 int main(){ 10 cin >> a; 11 n = strlen(a); 12 mid = n / 2 - 1; 13 ... 阅读全文
posted @ 2017-09-20 17:53 一个天才 阅读(85) 评论(0) 推荐(0)
队列
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 int n, a[100010], head, tail; 6 int v, c[100010]; 7 8 int main(){ 9 cin >> n; 10 for(int i = 1; i < 阅读全文
posted @ 2017-09-20 17:53 一个天才 阅读(78) 评论(0) 推荐(0)
FLOYD
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int m, n; 7 int e[10010][10010], t1, t2, t3; 8 9 int main(){ 10 cin >> n >> m; 11 for(int i = 1; i > t1 >> t2 >> t3; 17 ... 阅读全文
posted @ 2017-09-20 17:52 一个天才 阅读(145) 评论(0) 推荐(0)
DIJKSTRA
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 int n, m; 6 int minn; 7 int u; 8 int dis[100010], book[100010], t1, t2, t3, e[10010][10010]; 9 10 i 阅读全文
posted @ 2017-09-20 17:39 一个天才 阅读(151) 评论(0) 推荐(0)
FLOYD
摘要: #include <iostream> #include <iomanip> using namespace std; int m, n; int e[10010][10010], u, v, w; int main(){ cin >> n >> m; for(int i = 1; i <= n; 阅读全文
posted @ 2017-09-20 17:20 一个天才 阅读(104) 评论(0) 推荐(0)
uva12545
摘要: 1 #include<iostream> 2 3 using namespace std; 4 5 const int maxn =100+10; 6 7 char s[maxn],t[maxn]; 8 9 int main(){ 10 //freopen("10.in", "r", stdin); 阅读全文
posted @ 2017-09-20 17:02 一个天才 阅读(237) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3