摘要: 题目链接:http://codeforces.com/problemset/problem/463/B 求个最大值 AC代码: include include using namespace std; int main() { int n,x; int maxn; while(scanf("%d", 阅读全文
posted @ 2019-04-16 23:22 Youpeng 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 参考一个博客的链接:https://blog.csdn.net/thunders01/article/details/38879553 阅读全文
posted @ 2019-04-16 23:11 Youpeng 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/919/B AC代码: include using namespace std; //对全局变量或者对于一个或多个函数来说是全局的变量的时候,要注意上次用完该变量后变量的值,看其是否需要进行初始化。 int 阅读全文
posted @ 2019-04-16 22:29 Youpeng 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/276/A 从这n个输入中求最大值,注意 和 k的比较,定义一个maxn,对每个输入进行计算即可。 AC代码: include include using namespace std; / 获取int型数据的 阅读全文
posted @ 2019-04-16 21:52 Youpeng 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/659/A 在一个环中是按照升序方向走还是按照降续方向走 AC代码: 阅读全文
posted @ 2019-04-16 21:40 Youpeng 阅读(144) 评论(0) 推荐(0) 编辑