返回列表 發帖
  1. #include <iostream>
  2. using namespace std;
  3. int main(){

  4.     int x;
  5.     while (cin >> x){
  6.           x = (1*x*x*x + 5*x + 6)/6;
  7.           cout << x << endl;
  8.     }


  9.     return 0;

  10. }
複製代碼
明輝

TOP

返回列表