/*
acdream : 1168
题意:给出无限长的序列1,1,3,1,3,5,7,1,3,5,7,9,11,13,15,1,3,5,7,9...,问对于序列的前N个数,所有的连续上升子序列的和是多少.
推公式 套大数类。
PS: 大数的模板是网上的,一开始各种wa后来群里面的大神们说减法有问题,改过后A掉的。
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <queue>
#include <stack>
#include <vector>
#include <set>
#i......
阅读全文