Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

dh-winternagi 님의 블로그

(24266) 알고리즘 수업 - 알고리즘의 수행 시간 5 본문

백준 (C++)/Solve

(24266) 알고리즘 수업 - 알고리즘의 수행 시간 5

dh-winternagi 2026. 4. 12. 11:52

https://www.acmicpc.net/problem/24266

단계별로 풀어보기

11단계(시간 복잡도) 5번째

 

 

 

코드1은 삼중for문 안에서 n*n*n번 실행된다.

 

 

 

#include <iostream>
using namespace std;

int main() {
  long n;
  
  cin >> n;
  
  cout << n*n*n << "\n3";
  
  return 0;
}