Skip to content

Commit ebc6ebb

Browse files
committed
[level 3] Title: 숫자 게임, Time: 130.02 ms, Memory: 24.2 MB -BaekjoonHub
1 parent 729806a commit ebc6ebb

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

프로그래머스/3/12987. 숫자 게임/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 24.3 MB, 시간: 123.86 ms
7+
메모리: 24.2 MB, 시간: 130.02 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2025년 05월 08일 16:30:06
19+
2025년 05월 08일 16:32:31
2020

2121
### 문제 설명
2222

프로그래머스/3/12987. 숫자 게임/숫자 게임.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
def solution(A:list, B:list) -> int:
44
'''그리디
5-
A,B팀의 각 팀원이 무작위번호를 부여받아 한번씩 경기
6-
각 경기당 각팀에서 한명씩 나와 번호를 비교하여 큰쪽이 승리하고 1점 득점
7-
같다면 무득점
8-
A팀은 자신의 출전순서를 B팀에게 공개
9-
B팀은 그걸 보고 자신들의 최종 승점을 가장 높이는 방법으로 정했다
10-
이때 B팀이 얻는 최대승점
5+
경기당 양팀에서 한명씩 번호를 비교하여 큰쪽이 승리하고 1점 득점
6+
B팀이 얻는 최대승점 반환
117
args: 출전순으로 번호가 나열된 배열 A와 아닌 배열 B
128
A(list[int]): 1 <= len(A)==len(B) <= 10^5
139
B(list[int]): 1 <= (A[i] or B[i]) <= 10^9

0 commit comments

Comments
 (0)