알고리즘/코드업
[CodeUp]기초100제(python)_1093번 : [1차원배열] 이상한 출석 번호 부르기1
Orange57
2020. 4. 5. 00:16
728x90
반응형
SMALL
문제 :
출석 번호를 n번 무작위로 불렀을 때, 각 번호(1 ~ 23)가 불린 횟수를 각각 출력해보자.
답 :
count()는 리스트에 포함된 요소 x의 개수를 세는 함수이기 때문에
b의 input 값을 리스트로 받았다.
코드 : https://github.com/Yearang-Lee/Algorithm/tree/master/CodeUp
Yearang-Lee/Algorithm
Contribute to Yearang-Lee/Algorithm development by creating an account on GitHub.
github.com
728x90
반응형
LIST