摘要: /* 公式:n*(n+1)*(n+2)/6 输入要是__int64,否则报错 */ #include int main(){ int t; __int64 n,s; for(scanf("%d",&t);t--;){ scanf("%I64d",&n); ... 阅读全文
posted @ 2015-09-22 22:00 StevenLuke 阅读(115) 评论(0) 推荐(0)
摘要: 此题不懂,为什么是2*d[i-1] + d[i-2] #include #include using namespace std;int result[40];int main(){ int C, n; result[1] = 3; result[2] = 9; for (int i=3... 阅读全文
posted @ 2015-09-22 21:17 StevenLuke 阅读(93) 评论(0) 推荐(0)