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

(24262) 알고리즘 수업 - 알고리즘의 수행 시간 1 본문

백준 (C++)/Solve

(24262) 알고리즘 수업 - 알고리즘의 수행 시간 1

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

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

단계별로 풀어보기

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

 

 

 

코드1은 n의 값에 관계없이 1번만 실행된다.

 

 

 

#include <iostream>
using namespace std;

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