高階差

 

#include <iostream>

using namespace std;

int main()
{
    int n;

    while(cin >> n)
        cout << n*n/2 - n/2 + 1 << endl;

    return 0;
}

arrow
arrow
    全站熱搜

    大神(偽) 發表在 痞客邦 留言(0) 人氣()