当前位置:网站首页>蓝桥杯_分割立方体_组合数学_加法原理
蓝桥杯_分割立方体_组合数学_加法原理
2022-06-09 22:45:00 【这题AC再睡.】

//
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int main()
{
LL n,sum,p4,ans;
while( cin>>n )
{
if( n==1 ) { cout<<0<<endl; continue; }
sum=n*n*n*( n*n*n-1 )/2;
p4=3*8 + 4*(n-2)*12 + 5*6*(n-2)*(n-2) + 6*(n-2)*(n-2)*(n-2);
ans=sum-p4/2;
cout<<ans<<endl;
}
return 0;
}边栏推荐
- 这家估值25亿的公司,破产了?
- Boolean operation
- 2022 love analysis · privacy computing vendor panoramic report | love Analysis Report
- Deploy MySQL based on statefulset in kubernetes (Part 1)
- 堆叠线缆的光模块与普通光模块区别
- “35岁还没副业,都不好意思混职场”:摆脱死工资推荐这种副业
- I haven't seen this knowledge -- MySQL service evolution
- Still doubting the digital collection? The national team is starting to get in
- 荐书 | 手牵手一步两步望着天,看星星一颗两颗连成线
- 华泰证券开户安全吗
猜你喜欢

持续集成、持续交付、持续部署(CI/CD)详细介绍

荐书 | 手牵手一步两步望着天,看星星一颗两颗连成线

How does uni app build applets?

emu8086的入门使用

leetcode695. 岛屿的最大面积(中等)

Microsoft Word tutorial "4", how to apply styles and themes in word?

What is liquidity pledge? What is a farm pledge?

AI助力,释放法务势能——法大大iTerms合同智审系统正式发布
![[Title brushing] longest increasing subsequence](/img/70/43906baa2659662859659488cd14c0.png)
[Title brushing] longest increasing subsequence

Pcbttoolkit initial use
随机推荐
EasyRecovery15手机电脑全功能数据恢复软件
The latest activity openharmony open source developer growth plan solution student challenge is about to start!
emu8086的入门使用
Remove packages and dependencies using yum
2022 love analysis · privacy computing vendor panoramic report | love Analysis Report
Microcomputer principle and interface technology exercise 1
How to record the login information of accessing the database in oracle?
How to protect personal rights and interests when the universe is not an illegal place?
I haven't seen this knowledge -- MySQL service evolution
yum 删除包及依赖
be all eagerness to see it! Data list of Benji Banas' first quarter reward activities!
项目实训(十五)---视频多人物识别补充
What is a distributed software system
[reprint] six aspects of async/await that are superior to promise
Features and functions of IPSec
Continuous integration, continuous delivery and continuous deployment (ci/cd) details
Explanation of leetcode UHF questions (I)
Exness: twitter said that it would continue to share data with musk and conduct shareholder voting at the end of July or early August
最新活动|OpenHarmony开源开发者成长计划解决方案学生挑战赛即将开启!
又一重磅內容|海外現金貸產品形態及風控措施