Road To The 3rd Building HDU - 6827(期望)
一定要记录一下这道题。
虽然自己找的规律比较复杂但起码是对的。
结果因为n*(n+1)会爆Int自闭了一下午。
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
#define ll long long
const ll mod=1e9+7;
const int N=2e5+100;
ll sum[N],sum1[N],s
原创
2020-08-06 23:39:23 ·
141 阅读 ·
0 评论