-
[백준 문제풀이] 얼렁뚱땅 2628번 종이자르기 풀이얼렁뚱땅 백준 문제풀이 2022. 3. 25. 15:11
알아냈다
나의 실력은 아직 골드까지 못가는거였어 ㅜ
차근차근 해야게따
import sys n,m = map(int,sys.stdin.readline().split()) divide_num = int(sys.stdin.readline().strip()) row= [0, m] col = [0, n] for i in range(divide_num) : temp = list(map(int,sys.stdin.readline().split())) if temp[0]==0 : row.append(temp[1]) else : col.append(temp[1]) row.sort() col.sort() x_list = [row[i+1]-row[i] for i in range(len(row)-1)] y_list = [col[i+1]-col[i] for i in range(len(col)-1)] print(max(x_list)*max(y_list))
'얼렁뚱땅 백준 문제풀이' 카테고리의 다른 글
[백준 문제풀이] 얼렁뚱땅 11650번 좌표 정렬하기 풀이 (0) 2022.03.25 [백준 문제풀이] 얼렁뚱땅 1764번 듣보잡 문제풀이 (0) 2022.03.25 [백준 문제풀이] 얼렁뚱땅 10800번 컬러볼 풀다 말기 (0) 2022.03.25 [백준 문제풀이] 얼렁뚱땅 2470 두 용액 풀이 (0) 2022.03.24 [백준 문제풀이] 얼렁뚱땅 5052번 전화번호 목록 풀이 (0) 2022.03.21