海洋之心


私信TA

用户名:wanggongsheng

访问量:122712

签 名:

等  级
排  名 17
经  验 20533
参赛次数 3
文章发表 163
年  龄 26
在职情况 学生
学  校
专  业 计算机技术

  自我简介:

读研ing,平时不登录dotcpp

#include<iostream>
#include<cstdio>
using namespace std;
int main(void)
{
    int n ,  start   ;
    cin >>  n ;
    start = n * n - ( n - 1 ) ;
    printf("%d*%d*%d=%d=" , n , n , n , n * n * n );
    for(int  i = 0 ; i < n ;i++)
    if(i < n - 1 )printf("%d+",start + 2 * i);
    else printf("%d",start + 2 * i);
    return 0;
}

解题思路:





注意事项:





参考代码:

 

0.0分

1 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答

代码解释器

  评论区