摘要: 题目链接:https://nanti.jisuanke.com/t/31716解题思路:具体的规律可以通过打表的形式,推出第n个值的答案是 2的(n-1)次方。然后再就是看数据范围,10的十万次方,这玩意long long绝对存不了,所以需要考虑别的情况。首先想到的是... 阅读全文
posted @ 2018-09-15 20:10 Let_Life_Stop 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(91) 评论(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) 编辑
摘要: 题目链接: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) 编辑