[수학/브루트포스] 백준 3276 ICONS - 파이썬(Python)


[수학/브루트포스] 백준 3276 ICONS - 파이썬(Python)

[ Contents ] 1. 문제 (링크 참조) 3276번: ICONS The first and only line of input file contains a natural number N (1 ≤ N ≤ 100), the number of pebbles to be arranged. Arrangement needs not to be regular in any sense – some places in a row may be empty. www.acmicpc.net 2. 문제 풀이 최소의 열과 행으로 조약돌을 채워넣는 문제입니다. 3. 코드 # 입력 n = int(input()) # 행과 열을 1개씩 늘림 row = 0 col = 0 while True: if row * col >= n: break row ..


원문링크 : [수학/브루트포스] 백준 3276 ICONS - 파이썬(Python)