Changchun University fourteenth Programming Contest H Arithmetic Sequence-- use exception

topic

link

The meaning of problems: Given a number X, an output of arithmetic sequence, and such as X.

analysis

Defined by the arithmetic sequence, we can see that a number arithmetic sequence, the two numbers is the arithmetic sequence

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    scanf("%d", &n);
    printf("1\n");
    printf("%d\n", n);
    
    return 0;
}

(Only by doing the water problem to live a ...

Guess you like

Origin www.cnblogs.com/lfri/p/11202948.html