#25306: NA 97% 求BUG

#### 71087@stu.cchs.chc.edu.tw (~ pythOnia ChallengeR ~)

School : 精誠中學
ID : 125595
2021-07-25 11:13:57
f071. 2. 刮刮樂 (Lottery) -- | From: [114.42.184.172] | Post Date : 2021-05-08 14:25

#### #13: 1% WA (line:1)

您的答案為: 8667504

#### #87: 1% WA (line:1)

您的答案為: 884590 ...略

#### #96: 1% WA (line:1)

您的答案為: 543359 ...略

lc_1,lc_2,lc_3=map(int,input().split())

yr_num=list(map(int,input().split()))

map_money=list(map(int,input().split()))

c=0;money=0

for rn in range(5):

if yr_num[rn]==lc_1:

money+=map_money[rn]

elif yr_num[rn]==lc_2:

money+=map_money[rn]

elif yr_num[rn]==lc_3:

money-=map_money[rn]

c+=1

else:

continue

if money<0:

print(0)

elif c>=1:

print(money)

else:

print(money*2)

#29498: Re:NA 97% 求BUG

#### yp11051026@yphs.tp.edu.tw (15(70521))

School : 臺北市私立延平高級中學
ID : 163548
2022-07-06 17:50:36
f071. 2. 刮刮樂 (Lottery) -- | From: [1.171.212.86] | Post Date : 2022-03-06 22:23

#### #13: 1% WA (line:1)

您的答案為: 8667504

#### #87: 1% WA (line:1)

您的答案為: 884590 ...略

#### #96: 1% WA (line:1)

您的答案為: 543359 ...略

lc_1,lc_2,lc_3=map(int,input().split())

yr_num=list(map(int,input().split()))

map_money=list(map(int,input().split()))

c=0;money=0

for rn in range(5):

if yr_num[rn]==lc_1:

money+=map_money[rn]

elif yr_num[rn]==lc_2:

money+=map_money[rn]

elif yr_num[rn]==lc_3:

money-=map_money[rn]

c+=1

else:

continue

if money<0:

print(0)

elif c>=1:

print(money)

else:

print(money*2)

ZeroJudge Forum