-
[python]백준 2의 제곱인가? 11966번알고리즘 문제풀이/백준(파이썬) 2023. 5. 31. 22:23
코드
import sys sys.stdin = open("11966.txt", "r") n=int(input()) for i in range(31): if 2**i == n : print(1) break else: print(0)
링크
https://www.acmicpc.net/problem/11966
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 Metronome 27389번 (0) 2023.06.02 [python]백준 문자가 몇갤까 7600번 (1) 2023.06.01 [python]백준 팀명 정하기 28114번 (0) 2023.05.30 [python]백준 녹색거탑 24723번 (0) 2023.05.29 [python]백준 너의 이름은 몇 점이니? 15813번 (0) 2023.05.29