Skip to content

Commit 89db2a8

Browse files
committed
chore: 폴더명 수정
1 parent efb0698 commit 89db2a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+25
-25
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
def solution(enroll, referral, seller, amount):
2-
loc_data = {node : idx for idx, node in enumerate(enroll)}
3-
result = [0] * len(enroll)
4-
5-
root_list = []
6-
for leaf in seller:
7-
tmp = [leaf]
8-
cur_idx = loc_data[leaf]
9-
while referral[cur_idx] != '-':
10-
tmp.append(referral[cur_idx])
11-
cur_idx = loc_data[referral[cur_idx]]
12-
tmp.append('center')
13-
root_list.append(tmp)
14-
15-
for idx, price in enumerate(amount):
16-
price *= 100
17-
cur_root = root_list[idx]
18-
for node in cur_root[:-1]:
19-
price_10 = int(price * 0.1)
20-
result[loc_data[node]] += price - price_10
21-
if price_10 < 1:
22-
break
23-
price = price_10
24-
return result
25-
1+
def solution(enroll, referral, seller, amount):
2+
loc_data = {node : idx for idx, node in enumerate(enroll)}
3+
result = [0] * len(enroll)
4+
5+
root_list = []
6+
for leaf in seller:
7+
tmp = [leaf]
8+
cur_idx = loc_data[leaf]
9+
while referral[cur_idx] != '-':
10+
tmp.append(referral[cur_idx])
11+
cur_idx = loc_data[referral[cur_idx]]
12+
tmp.append('center')
13+
root_list.append(tmp)
14+
15+
for idx, price in enumerate(amount):
16+
price *= 100
17+
cur_root = root_list[idx]
18+
for node in cur_root[:-1]:
19+
price_10 = int(price * 0.1)
20+
result[loc_data[node]] += price - price_10
21+
if price_10 < 1:
22+
break
23+
price = price_10
24+
return result
25+
2626

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)