Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: yume_snowy

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-24 16:26:06

#include <stdio.h>

int main() {
  int t;
  scanf("%d",&t);

  // sol loop
  int height = 0; // ความสูง
  int x = 4;
  for (int current_t = 1; current_t <= t; current_t++) {
    height += x;
    x += 6;
  }
  printf("%d", height);
}