Code Signal: Intro=57/60
by 습관중독def fileNaming(names):
for i in range(len(names)):
total = 0
for j in range(i+1, len(names)):
if names[i] == names[j]:
total += 1
names[j] = names[j]+'('+str(total)+')'
print(names[i], names[j])
return names
4/6 sample tests passed.
'코드 파이트(Code Signal)' 카테고리의 다른 글
Code Signal: Intro=59/60 (0) | 2020.02.24 |
---|---|
Code Signal: Intro=58/60 (0) | 2020.02.24 |
Code Signal: Intro=56/60 (0) | 2020.02.23 |
Code Signal: Intro=55/60 (0) | 2020.02.23 |
Code Signal: Intro=54/60 (0) | 2020.02.23 |
블로그의 정보
습관을 애정한다
습관중독