name=["홍길동","이순신","황진이"]
gender=["남","남","여","남"] #[0,0,1]
time=[100,50,72,67]
discount=["없음","청소년","국가유공자","없음"]
user=0
price=0
total_m=0
total_w=0
total_all=0
user=len(name) #length 회원 수 계산
print("전체 사용자 수:",user,"명")
for i in range(0,user):
price=time[i]*60*2 #1분 60초 /1초 2원
#할인추가 코드
if(discount[i]=="청소년"):
price=price*0.8 #소수점
price=int(price)
elif(discount[i]=="국가유공자"):
price=price*0.7 #소수점
price=int(price)
print(i,"번 사용자의 요금은",price,"원") #출력
if(gender[i]=="남"):
total_m=total_m+price #누적
elif(gender[i]=="여"):
total_w=total_w+price #누적
total_all=total_m+total_w
print("남자회원 요금 합:",total_m) #16800
print("여자회원 요금 합:",total_w) #6048
print("전체회원 요금 합:",total_all) #22848
bmFtZT1bIu2Zjeq4uOuPmSIsIuydtOyInOyLoCIsIu2ZqeynhOydtCJdCmdlbmRlcj1bIuuCqCIsIuuCqCIsIuyXrCIsIuuCqCJdICNbMCwwLDFdCnRpbWU9WzEwMCw1MCw3Miw2N10KZGlzY291bnQ9WyLsl4bsnYwiLCLssq3shozrhYQiLCLqta3qsIDsnKDqs7XsnpAiLCLsl4bsnYwiXQoKdXNlcj0wCnByaWNlPTAKdG90YWxfbT0wCnRvdGFsX3c9MAp0b3RhbF9hbGw9MAoKdXNlcj1sZW4obmFtZSkgI2xlbmd0aCDtmozsm5Ag7IiYIOqzhOyCsApwcmludCgi7KCE7LK0IOyCrOyaqeyekCDsiJg6Iix1c2VyLCLrqoUiKSAKCmZvciBpIGluIHJhbmdlKDAsdXNlcik6CiAgICBwcmljZT10aW1lW2ldKjYwKjIgIzHrtoQgNjDstIggLzHstIggMuybkAogICAgI+2VoOyduOy2lOqwgCDsvZTrk5wKICAgIGlmKGRpc2NvdW50W2ldPT0i7LKt7IaM64WEIik6CiAgICAgICAgcHJpY2U9cHJpY2UqMC44ICPshozsiJjsoJAKICAgICAgICBwcmljZT1pbnQocHJpY2UpCiAgICBlbGlmKGRpc2NvdW50W2ldPT0i6rWt6rCA7Jyg6rO17J6QIik6CiAgICAgICAgcHJpY2U9cHJpY2UqMC43ICPshozsiJjsoJAKICAgICAgICBwcmljZT1pbnQocHJpY2UpCiAgICBwcmludChpLCLrsogg7IKs7Jqp7J6Q7J2YIOyalOq4iOydgCIscHJpY2UsIuybkCIpICPstpzroKUKICAgIAogICAgaWYoZ2VuZGVyW2ldPT0i64KoIik6CiAgICAgICAgdG90YWxfbT10b3RhbF9tK3ByaWNlICPriITsoIEKICAgIGVsaWYoZ2VuZGVyW2ldPT0i7JesIik6CiAgICAgICAgdG90YWxfdz10b3RhbF93K3ByaWNlICPriITsoIEKICAgIHRvdGFsX2FsbD10b3RhbF9tK3RvdGFsX3cKCnByaW50KCLrgqjsnpDtmozsm5Ag7JqU6riIIO2VqToiLHRvdGFsX20pICMxNjgwMApwcmludCgi7Jes7J6Q7ZqM7JuQIOyalOq4iCDtlak6Iix0b3RhbF93KSAjNjA0OApwcmludCgi7KCE7LK07ZqM7JuQIOyalOq4iCDtlak6Iix0b3RhbF9hbGwpICMyMjg0OA==
('\xec\xa0\x84\xec\xb2\xb4 \xec\x82\xac\xec\x9a\xa9\xec\x9e\x90 \xec\x88\x98:', 3, '\xeb\xaa\x85')
(0, '\xeb\xb2\x88 \xec\x82\xac\xec\x9a\xa9\xec\x9e\x90\xec\x9d\x98 \xec\x9a\x94\xea\xb8\x88\xec\x9d\x80', 12000, '\xec\x9b\x90')
(1, '\xeb\xb2\x88 \xec\x82\xac\xec\x9a\xa9\xec\x9e\x90\xec\x9d\x98 \xec\x9a\x94\xea\xb8\x88\xec\x9d\x80', 4800, '\xec\x9b\x90')
(2, '\xeb\xb2\x88 \xec\x82\xac\xec\x9a\xa9\xec\x9e\x90\xec\x9d\x98 \xec\x9a\x94\xea\xb8\x88\xec\x9d\x80', 6048, '\xec\x9b\x90')
('\xeb\x82\xa8\xec\x9e\x90\xed\x9a\x8c\xec\x9b\x90 \xec\x9a\x94\xea\xb8\x88 \xed\x95\xa9:', 16800)
('\xec\x97\xac\xec\x9e\x90\xed\x9a\x8c\xec\x9b\x90 \xec\x9a\x94\xea\xb8\x88 \xed\x95\xa9:', 6048)
('\xec\xa0\x84\xec\xb2\xb4\xed\x9a\x8c\xec\x9b\x90 \xec\x9a\x94\xea\xb8\x88 \xed\x95\xa9:', 22848)