码迷,mamicode.com
首页 > 其他好文 > 详细

Vladik and fractions

时间:2020-02-22 20:17:52      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:pac   int   include   space   scanf   names   actions   scan   span   

代码(该代码忽略 \(n=1\)

#include<cstdio>
using namespace std;

int n;

int main()
{
    scanf("%d" , &n);
    printf("%d %d %d" , n , n + 1 , n * (n + 1));
}

Vladik and fractions

标签:pac   int   include   space   scanf   names   actions   scan   span   

原文地址:https://www.cnblogs.com/leiyuanze/p/12346738.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!