Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Sense.exe
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2026-09-24 15:57:11
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
int add=0,temp=4;
for(int i=0; i<t; i++) {
add+=temp;
temp+=6;
}
cout << add;
}