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 님의 블로그

(24263) 알고리즘 수업 - 알고리즘의 수행 시간 2 본문

백준 (C++)/Solve

(24263) 알고리즘 수업 - 알고리즘의 수행 시간 2

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

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

단계별로 풀어보기

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

 

 

 

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

 

 

 

#include <iostream>
using namespace std;

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