上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 59 下一页
摘要: 题目链接:https://nanti.jisuanke.com/t/31716解题思路:具体的规律可以通过打表的形式,推出第n个值的答案是 2的(n-1)次方。然后再就是看数据范围,10的十万次方,这玩意long long绝对存不了,所以需要考虑别的情况。首先想到的是... 阅读全文
posted @ 2018-09-15 20:10 Let_Life_Stop 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 例题(简单):http://acm.sdut.edu.cn/onlinejudge2/index.php/Home/Index/problemdetail/pid/1132.html代码:#include#include#include#include#include... 阅读全文
posted @ 2018-09-15 10:32 Let_Life_Stop 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 例题(简单):http://acm.sdut.edu.cn/onlinejudge2/index.php/Home/Index/problemdetail/pid/1132.html代码:#include#include#include#include#include... 阅读全文
posted @ 2018-09-15 10:32 Let_Life_Stop 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/254150#problem/Fwa代码:#include#include#include#include#include#include#include#includeusing namespac... 阅读全文
posted @ 2018-09-15 08:42 Let_Life_Stop 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/254150#problem/Fwa代码:#include#include#include#include#include#include#include#includeusing namespac... 阅读全文
posted @ 2018-09-15 08:42 Let_Life_Stop 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/31459具体思路:先顺序输入,然后回溯,假设已经加入了n个点,那么在加入的同时,首先看一下原先x轴上已经有过的点,找到第一个最接近第n个点并且小于第n个点的坐标,y轴同理。如果没有找到,比如说第一个... 阅读全文
posted @ 2018-09-11 08:27 Let_Life_Stop 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/31459具体思路:先顺序输入,然后回溯,假设已经加入了n个点,那么在加入的同时,首先看一下原先x轴上已经有过的点,找到第一个最接近第n个点并且小于第n个点的坐标,y轴同理。如果没有找到,比如说第一个... 阅读全文
posted @ 2018-09-11 08:27 Let_Life_Stop 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/31452AC代码(看到不好推的定理就先打表!!!!):#includeusing namespace std;# define maxn 40000+100int a[maxn];int b[max... 阅读全文
posted @ 2018-09-08 20:04 Let_Life_Stop 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://nanti.jisuanke.com/t/31452AC代码(看到不好推的定理就先打表!!!!):#includeusing namespace std;# define maxn 40000+100int a[maxn];int b[max... 阅读全文
posted @ 2018-09-08 20:04 Let_Life_Stop 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 代码:#includeusing namespace std;# define maxn 100000+10int t1[maxn],t2[maxn];int main(){ ios::sync_with_stdio(false); int n; s... 阅读全文
posted @ 2018-09-08 09:57 Let_Life_Stop 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 59 下一页