不错的数学题

https://ac.nowcoder.com/acm/contest/71162/A

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
const int N = 1e6 + 5;
void slove()
{
    long long n;
    cin>>n;
    cout<<6*n*n*n*n+2<<endl;
}
int main(void)
{
    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    int t = 1;
    cin>>t;
    while(t--) slove();
    return 0;
}



全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务