Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: KurtCobain

Problemset: นักบินอวกาศ

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-03 13:23:27

#include <iostream>
#include <vector>
using namespace std;


int main(){
  int n;
  cin >> n;
  vector<int> to_time = {};
  to_time.push_back(4);
  int p = 4;
  for (int i=0;i<n;i++){
    p += 6;
    to_time.push_back(p);
  }
  int o = 0;
  for (int j=0;j<n;j++){
    o+=to_time[j];
  }
  cout << o;
}