上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 题目: https://vjudge.net/problem/POJ-2253 注意这题的输出:For each test case, print a line saying "Scenario #x" and a line saying "Frog Distance = y" where x is 阅读全文
posted @ 2021-07-07 19:26 废柴废柴少女 阅读(65) 评论(0) 推荐(0)
摘要: 题目: https://vjudge.net/problem/POJ-2387 思路: 输入的两个点之间可能右多个长度,留下最小的 #include<stdio.h> #include<string.h> const int maxn=1003; const int maxm=2003; const 阅读全文
posted @ 2021-07-07 15:14 废柴废柴少女 阅读(50) 评论(0) 推荐(0)
摘要: 题目: https://codeforces.com/group/d3FEQxSUNi/contest/335515/problem/I 不要忘了-1 #include<stdio.h> #include<bits/stdc++.h> using namespace std; int n,s,e; 阅读全文
posted @ 2021-07-07 09:20 废柴废柴少女 阅读(37) 评论(0) 推荐(0)
摘要: 题目: https://codeforces.com/group/d3FEQxSUNi/contest/335515/problem/F 思路: 从后往前推 用long long 时注意有的不要习惯性写成int #include<stdio.h> using namespace std; const 阅读全文
posted @ 2021-07-06 20:51 废柴废柴少女 阅读(43) 评论(0) 推荐(0)
摘要: 题目: https://codeforces.com/group/d3FEQxSUNi/contest/335515/problem/D 最开始是1朝上 #include<stdio.h> #include<queue> #include<string.h> using namespace std; 阅读全文
posted @ 2021-07-06 20:01 废柴废柴少女 阅读(1930) 评论(0) 推荐(0)
摘要: 题目: https://vjudge.net/problem/POJ-3279 参考的题解: POJ-3279 经典翻转问题_越努力越幸运—liupu-CSDN博客 翻转吧!POJ 3279! - 知乎 (zhihu.com) 思路:把第一排的01串给枚举出来(直接按照字典序来) 从第二排开始把每种 阅读全文
posted @ 2021-07-05 20:50 废柴废柴少女 阅读(39) 评论(0) 推荐(0)
摘要: 题目: https://vjudge.net/problem/POJ-3278 思路: bfs 我用标记判断的时候,注意n==k的情况下 或者直接在While 循环里把if(x==k) {return d[k]; } #include<stdio.h> #include<queue> using n 阅读全文
posted @ 2021-07-05 20:43 废柴废柴少女 阅读(21) 评论(0) 推荐(0)
摘要: 题目: https://ac.nowcoder.com/acm/problem/106055思路: dp[i][j]表示s1前i个字母和s2前j个字母的最长子序列 #include<algorithm> #include<iostream> #include<string> #include<cst 阅读全文
posted @ 2021-07-05 15:51 废柴废柴少女 阅读(23) 评论(0) 推荐(0)
摘要: 题目: https://ac.nowcoder.com/acm/problem/107076 题解: 先从左到右遍历一遍,求出到每个点为止的最大序列 要把le[1]单独拿出来,如果和后面一起放到循环里会出错,因为会有负数 同理后面的ri[n] r[n]都要把最后一个单独拿出来 最后再遍历断点 (ps 阅读全文
posted @ 2021-07-05 14:34 废柴废柴少女 阅读(71) 评论(0) 推荐(0)
摘要: 题目: Dungeon Master poj2251 https://vjudge.net/problem/POJ-2251 #include<cstdio> #include<string.h> #include<queue> using namespace std; int l,r,c; cha 阅读全文
posted @ 2021-07-04 20:47 废柴废柴少女 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页