95.0% ≤ sim ≤ 100%64_2_PCG_05
24 clusters, 101 submissions: cluster #1(34)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(',') d = input() x,y,z,p = 0,0,0,0 for i in range(len(a)): if i < len(d) : if a[i] == d[i] : x += int(b) y += 1 elif d[i] == '-': p +=1 else: x -= int(c) z += 1 else: p += 1 if x < 0: x = 0 print(y,z,p,x) |
: cluster #2(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, c, inc = input().split(",") ans = input(); c = int(c); inc = int(inc) score = tuk = pid = no = 0; ans += "-" * (len(sol) - len(ans)) for i in range(len(ans)): if ans[i] == sol[i]: score += c; tuk += 1 elif ans[i] != sol[i] and ans[i] != '-': score -= inc; pid += 1 else: no += 1 print(tuk, pid, no, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, c, inc = input().split(",") ans = input(); c = int(c); inc = int(inc) score = tuk = pid = no = 0; ans += "-" * (len(sol) - len(ans)) for i in range(len(ans)): if ans[i] == sol[i]: score += c; tuk += 1 elif ans[i] != sol[i] and ans[i] != '-': score -= inc; pid += 1 else: no += 1 print(tuk, pid, no, max(score, 0)) |
: cluster #3(3)
# 6xxxxxxxx1: (point = 67%) sim = 100.0% n0,n1,n2=input().split(',') y=input() k=0 miss=0 p=0 n=0 for i in range(len(n0)): if len(y) != len(n0): y += 'P' miss+=1 if y[i]=='-': miss+=1 n-=1 for i in range(len(n0)): if y[i]==n0[i]: k+=int(n1) p+=1 elif y[i]=='-' or y[i]=='P': n+=1 else: k -= int(n2) n += 1 if k<0: k=0 print(p,n,miss,k) | # 6xxxxxxxx1: (point = 67%) sim = 100.0% n0,n1,n2=input().split(',') y=input() k=0 miss=0 p=0 n=0 for i in range(len(n0)): if len(y) != len(n0): y += 'P' miss+=1 if y[i]=='-': miss+=1 n-=1 for i in range(len(n0)): if y[i]==n0[i]: k+=int(n1) p+=1 elif y[i]=='-' or y[i]=='P': n+=1 else: k -= int(n2) n += 1 if k<0: k=0 print(p,n,miss,k) | # 6xxxxxxxx1: (point = 67%) sim = 100.0% n0,n1,n2=input().split(',') y=input() k=0 miss=0 p=0 n=0 for i in range(len(n0)): if len(y) != len(n0): y += 'P' miss+=1 if y[i]=='-': miss+=1 n-=1 for i in range(len(n0)): if y[i]==n0[i]: k+=int(n1) p+=1 elif y[i]=='-' or y[i]=='P': n+=1 else: k -= int(n2) n += 1 if k<0: k=0 print(p,n,miss,k) |
: cluster #4(6)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% qc,cr,wr = input().split(',') ans = input() sc = 0 t = 0 f = 0 non = len(qc)-len(ans) for i in range (len(ans)): if ans[i] == '-' : non += 1 elif ans[i] == qc[i] : t += 1 elif ans[i] != qc[i] : f += 1 sc = t*int(cr) - f*int(wr) if sc>0 : print(t,f,non,sc) else : print(t,f,non,0) |
: cluster #5(3)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a,t,f = input().split(",") x = input() c = 0 l = 0 z = 0 for k in range(len(x)) : if k == len(x) : break elif x[k] == "-" : z += 1 elif x[k] == a[k] : c += 1 else : l += 1 if (c*int(t) - l*int(f)) >= 0 : print(c,l,len(a) - len(x) + z,c*int(t) - l*int(f)) else : print(c,l,len(a) - len(x) + z,"0") print() | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,t,f = input().split(",") x = input() c = 0 l = 0 z = 0 for k in range(len(x)) : if k == len(x) : break elif x[k] == "-" : z += 1 elif x[k] == a[k] : c += 1 else : l += 1 if (c*int(t) - l*int(f)) >= 0 : print(c,l,len(a) - len(x) + z,c*int(t) - l*int(f)) else : print(c,l,len(a) - len(x) + z,"0") print() | # 6xxxxxxxx1: (point = 100%) sim = 98.0% a,t,f = input().split(",") x = input() c = 0 l = 0 z = 0 for k in range(len(x)) : if k == len(x) : break elif x[k] == "-" : z += 1 elif x[k] == a[k] : c += 1 else : l += 1 if (c*int(t) - l*int(f)) >= 0 : print(c,l,len(a) - len(x) + z,c*int(t) - l*int(f)) else : print(c,l,len(a) - len(x) + z,"0") |
: cluster #6(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% solution = input().split(",") answer = input() solution[1], solution[2] = int(solution[1]), int(solution[2]) right, wrong = 0, 0 for i in range(len(answer)): if answer[i] == '-': continue elif answer[i] == solution[0][i]: right += 1 else: wrong += 1 print(right, wrong, int(len(solution[0]) - right - wrong), max(0, right*solution[1] - wrong*solution[2])) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% solution = input().split(",") answer = input() solution[1], solution[2] = int(solution[1]), int(solution[2]) right, wrong, = 0, 0 for i in range(len(answer)): if answer[i] == '-': continue elif answer[i] == solution[0][i]: right += 1 else: wrong += 1 print(right, wrong, int(len(solution[0]) - right - wrong), max(0, right*solution[1] - wrong*solution[2])) |
: cluster #7(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% an,t,f=input().split(',') st=input() t,f=int(t),int(f) cor,wor=0,0 for i in range(len(st)): if st[i]==an[i]: cor+=1 elif st[i]!=an[i] and st[i]!='-': wor+=1 score = (cor*t)-(wor*f) if score <0: score=0 print(cor,wor,len(an)-cor-wor,score) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% an,t,f=input().split(',') st=input() t,f=int(t),int(f) cor,wor=0,0 for i in range(len(st)): if st[i]==an[i]: cor+=1 elif st[i]!=an[i] and st[i]!='-': wor+=1 score = (cor*t)-(wor*f) if score <0: score=0 print(cor,wor,len(an)-cor-wor,score) |
: cluster #8(3)
# 6xxxxxxxx1: (point = 33%) sim = 100.0% a,r,f = input().split(",") b = input() r = int(r) f = int(f) i = 0 k = 0 t = 0 u = 0 res = 0 while i in range(len(a)) : if (b[i] == "T" and a[i] == "T") or (b[i] == "F" and a[i] == "F") : k += 1 i += 1 elif b[i] != a[i] : t += 1 i += 1 elif b[i] == "-" or b[i] == " " : u += 1 i += 1 kr = k*r tf = t*f res = kr - tf print(k,t,u,res) | # 6xxxxxxxx1: (point = 33%) sim = 100.0% a,r,f = input().split(",") b = input() r = int(r) f = int(f) i = 0 k = 0 t = 0 u = 0 res = 0 while i in range(len(a)) : if (b[i] == "T" and a[i] == "T") or (b[i] == "F" and a[i] == "F") : k += 1 i += 1 elif b[i] != a[i] : t += 1 i += 1 elif b[i] == "-" or b[i] == " " : u += 1 i += 1 kr = k*r tf = t*f res = kr - tf print(k,t,u,res) | # 6xxxxxxxx1: (point = 33%) sim = 100.0% a,r,f = input().split(",") b = input() r = int(r) f = int(f) i = 0 k = 0 t = 0 u = 0 res = 0 while i in range(len(a)) : if (b[i] == "T" and a[i] == "T") or (b[i] == "F" and a[i] == "F") : k += 1 i += 1 elif b[i] != a[i] : t += 1 i += 1 elif b[i] == "-" or b[i] == " " : u += 1 i += 1 kr = k*r tf = t*f res = kr - tf print(k,t,u,res) |
: cluster #9(10)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 didntdo = 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif ans[i] == "-": didntdo += 1 elif sol[i] != ans[i]: wrong += 1 score -= swrong print(cor, wrong, didntdo, max(score, 0)) |
: cluster #10(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% ori, b, c = input().split(",") b = int(b) c = int(c) tea = input() ct, cf = 0, 0 for i in range(len(tea)): if tea[i] == '-': continue if tea[i] == ori[i]: ct += 1 else: cf += 1 score = ct * b - cf * c if score < 0: score = 0 print("{} {} {} {}".format(ct, cf, len(ori) - ct - cf, score)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% ori, b, c = input().split(",") b = int(b) c = int(c) tea = input() ct, cf = 0, 0 for i in range(len(tea)): if tea[i] == '-': continue if tea[i] == ori[i]: ct += 1 else: cf += 1 score = ct * b - cf * c if score < 0: score = 0 print("{} {} {} {}".format(ct, cf, len(ori) - ct - cf, score)) |
: cluster #11(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a = input().split(",") result = a[0] point = int(a[1]) mpoint = int(a[2]) do = input() allpoint = 0 correct = 0 notdo = 0 incorrect = 0 for i in range(len(do)): if do[i] == result[i]: allpoint += point correct += 1 else: if do[i] == '-': notdo += 1 else: allpoint -= mpoint incorrect += 1 notdo += len(result) - len(do) if allpoint < 0: allpoint = 0 print(correct, incorrect, notdo, allpoint) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a = input().split(",") result = a[0] point = int(a[1]) mpoint = int(a[2]) do = input() allpoint = 0 correct = 0 notdo = 0 incorrect = 0 for i in range(len(do)): if do[i] == result[i]: allpoint += point correct += 1 else: if do[i] == '-': notdo += 1 else: allpoint -= mpoint incorrect += 1 notdo += len(result) - len(do) if allpoint < 0: allpoint = 0 print(correct, incorrect, notdo, allpoint) |
: cluster #12(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(",");b=int(b);c=int(c) d = input() e = len(a) f = len(d) x = e-f d = d+("-"*x) sc = 0 t = 0 f = 0 u = 0 for i in range(e): if d[i]==a[i]: sc += b t += 1 elif d[i]=="-": sc = sc u +=1 elif (d[i]!=a[i]) and (d[i]!="-"): sc -= c f += 1 if sc < 0: sc = 0 print(str(t),str(f),str(u),str(sc)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,b,c = input().split(",");b=int(b);c=int(c) d = input() e = len(a) f = len(d) x = e-f d = d+("-"*x) sc = 0 t = 0 f = 0 u = 0 for i in range(e): if d[i]==a[i]: sc += b t += 1 elif d[i]=="-": sc = sc u +=1 elif (d[i]!=a[i]) and (d[i]!="-"): sc -= c f += 1 if sc < 0: sc = 0 print(str(t),str(f),str(u),str(sc)) |
: cluster #13(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a, b, c = input().split(',') b = int(b) c = int(c) x = input() correct = 0 wrong = 0 score = 0 for i in range(len(x)): if x[i] == a[i]: correct = correct + 1 score = score + b elif x[i] != '-' and x[i] != a[i]: wrong = wrong + 1 score = score - c sum_s = correct * b - wrong * c if sum_s < 0: sum_s = 0 print(correct, wrong, len(a) - correct-wrong, sum_s) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a, b, c = input().split(',') b = int(b) c = int(c) x = input() correct = 0 wrong = 0 score = 0 for i in range(len(x)): if x[i] == a[i]: correct = correct + 1 score = score + b elif x[i] != '-' and x[i] != a[i]: wrong = wrong + 1 score = score - c sum_s = correct * b - wrong * c if sum_s < 0: sum_s = 0 print(correct, wrong, len(a) - correct-wrong, sum_s) |
: cluster #14(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% ans = input().split(',') stu = input() i = 0 x = 0 correct = 0 wrong = 0 u =0 if len(stu) - len(ans) != 0: u += len(ans[0])-len(stu) for k in range(len(stu)) : if ans[0][k] == stu[k]: x += int(ans[1]) correct += 1 elif stu[k] == '-': u += 1 elif ans[0][k] != stu[k]: x -= int(ans[2]) wrong += 1 if x<0: x = 0 print(correct,wrong,u,x) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% ans = input().split(',') stu = input() i = 0 x = 0 correct = 0 wrong = 0 u =0 if len(stu) - len(ans) != 0: u += len(ans[0])-len(stu) for k in range(len(stu)) : if ans[0][k] == stu[k]: x += int(ans[1]) correct += 1 elif stu[k] == '-': u += 1 elif ans[0][k] != stu[k]: x -= int(ans[2]) wrong += 1 if x<0: x = 0 print(correct,wrong,u,x) |
: cluster #15(4)
# 6xxxxxxxx1: (point = 67%) sim = 100.0% ans, cor, wro = input().split(',') cor = int(cor) wro = int(wro) check = input() score = 0 c = 0 w = 0 d = 0 for i in range(len(ans)) : if len(ans) != len(check) : d += len(ans) - len(check) if len(ans) == len(check): if ans[i] == check[i] : score += cor c += 1 elif ans[i] != check[i] : if check[i] == '-': d += 1 else: w += 1 score -= wro print(c, w, d, score) | # 6xxxxxxxx1: (point = 67%) sim = 100.0% ans, cor, wro = input().split(',') cor = int(cor) wro = int(wro) check = input() score = 0 c = 0 w = 0 d = 0 for i in range(len(ans)) : if len(ans) != len(check) : d += len(ans) - len(check) if len(ans) == len(check): if ans[i] == check[i] : score += cor c += 1 elif ans[i] != check[i] : if check[i] == '-': d += 1 else: w += 1 score -= wro print(c, w, d, score) | # 6xxxxxxxx1: (point = 67%) sim = 100.0% ans, cor, wro = input().split(',') cor = int(cor) wro = int(wro) check = input() score = 0 c = 0 w = 0 d = 0 for i in range(len(ans)) : if len(ans) != len(check) : d += len(ans) - len(check) if len(ans) == len(check): if ans[i] == check[i] : score += cor c += 1 elif ans[i] != check[i] : if check[i] == '-': d += 1 else: w += 1 score -= wro print(c, w, d, score) | # 6xxxxxxxx1: (point = 67%) sim = 100.0% ans, cor, wro = input().split(',') cor = int(cor) wro = int(wro) check = input() score = 0 c = 0 w = 0 d = 0 for i in range(len(ans)) : if len(ans) != len(check) : d += len(ans) - len(check) if len(ans) == len(check): if ans[i] == check[i] : score += cor c += 1 elif ans[i] != check[i] : if check[i] == '-': d += 1 else: w += 1 score -= wro print(c, w, d, score) |
: cluster #16(4)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif sol[i] != ans[i] and ans[i] != '-': wrong += 1 score -= swrong print(cor, wrong, len(ans)-cor-wrong, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif sol[i] != ans[i] and ans[i] != '-': wrong += 1 score -= swrong print(cor, wrong, len(ans)-cor-wrong, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif sol[i] != ans[i] and ans[i] != '-': wrong += 1 score -= swrong print(cor, wrong, len(ans)-cor-wrong, max(score, 0)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% sol, scor, swrong = input().split(",") ans = input() scor, swrong = int(scor), int(swrong) score = 0 cor, wrong = 0, 0 ans += "-" * (len(sol) - len(ans)) for i in range(len(sol)): if sol[i] == ans[i]: score += scor cor += 1 elif sol[i] != ans[i] and ans[i] != '-': wrong += 1 score -= swrong print(cor, wrong, len(ans)-cor-wrong, max(score, 0)) |
: cluster #17(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% t,g,l = input().split(',') s = input() g = int(g) l = int(l) grade = 0 c =0 w=0 lose = 0 for i in range(len(s)): if s[i] =='-': lose+=1 elif s[i] == t[i]: c+=1 else: w+=1 lose += max(len(t) -len(s),0) print(c,w,lose,max(0,c*g - w*l)) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% t,g,l = input().split(',') s = input() g = int(g) l = int(l) grade = 0 c =0 w=0 lose = 0 for i in range(len(s)): if s[i] =='-': lose+=1 elif s[i] == t[i]: c+=1 else: w+=1 lose += max(len(t) -len(s),0) print(c,w,lose,max(0,c*g - w*l)) |
: cluster #18(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% a,r,f = input().split(",") b = input() r = int(r) f = int(f) i = 0 k = 0 t = 0 u = 0 res = 0 while len(b) != len(a) : b += "-" while i in range(len(a)) : if (b[i] == "T" and a[i] == "T") or (b[i] == "F" and a[i] == "F") : k += 1 i += 1 elif (b[i] == "T" and a[i] == "F") or (b[i] == "F" and a[i] == "T") : t += 1 i += 1 else : u += 1 i += 1 kr = k*r tf = t*f res = kr - tf if res <= 0 : res = 0 print(k,t,u,res) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% a,r,f = input().split(",") b = input() r = int(r) f = int(f) i = 0 k = 0 t = 0 u = 0 res = 0 while len(b) != len(a) : b += "-" while i in range(len(a)) : if (b[i] == "T" and a[i] == "T") or (b[i] == "F" and a[i] == "F") : k += 1 i += 1 elif (b[i] == "T" and a[i] == "F") or (b[i] == "F" and a[i] == "T") : t += 1 i += 1 else : u += 1 i += 1 kr = k*r tf = t*f res = kr - tf if res <= 0 : res = 0 print(k,t,u,res) |
: cluster #19(2)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% key = input().split(',') p = int(key[1]) m = int(key[2]) key = key[0] ans = input() ans += ' '*(len(key) - len(ans)) cor = 0 wro = 0 no = 0 for i in range(len(key)) : if ans[i] not in ['T','F'] : no += 1 elif ans[i] == key[i] : cor += 1 elif ans[i] != key[i] : wro += 1 score = int((p*cor) - (m*wro)) if score < 0 : score = 0 print(cor,wro,no,score) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% key = input().split(',') p = int(key[1]) m = int(key[2]) key = key[0] ans = input() ans += ' '*(len(key) - len(ans)) cor = 0 wro = 0 no = 0 for i in range(len(key)) : if ans[i] not in ['T','F'] : no += 1 elif ans[i] == key[i] : cor += 1 elif ans[i] != key[i] : wro += 1 score = int((p*cor) - (m*wro)) if score < 0 : score = 0 print(cor,wro,no,score) |
: cluster #20(3)
# 6xxxxxxxx1: (point = 100%) sim = 100.0% t = input().split(",") t[1] = int(t[1]) t[2] = int(t[2]) s = input() s += "-"*((len(t[0]))-len(s)) right = 0 wrong = 0 un = 0 point = 0 for i in range(len(s)) : if s[i] == t[0][i] : point += t[1] right += 1 elif s[i] == "-" : point += 0 un += 1 else : point -= t[2] wrong += 1 if point < 0 : point = 0 print(right,wrong,un,point) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% t = input().split(",") t[1] = int(t[1]) t[2] = int(t[2]) s = input() s += "-"*((len(t[0]))-len(s)) right = 0 wrong = 0 un = 0 point = 0 for i in range(len(s)) : if s[i] == t[0][i] : point += t[1] right += 1 elif s[i] == "-" : point += 0 un += 1 else : point -= t[2] wrong += 1 if point < 0 : point = 0 print(right,wrong,un,point) | # 6xxxxxxxx1: (point = 100%) sim = 100.0% t = input().split(",") t[1] = int(t[1]) t[2] = int(t[2]) s = input() s += "-"*((len(t[0]))-len(s)) right = 0 wrong = 0 un = 0 point = 0 for i in range(len(s)) : if s[i] == t[0][i] : point += t[1] right += 1 elif s[i] == "-" : point += 0 un += 1 else : point -= t[2] wrong += 1 if point < 0 : point = 0 print(right,wrong,un,point) |
: cluster #21(2)
# 6xxxxxxxx1: (point = 33%) sim = 100.0% sol,plus,minus = input().split(',') ans = input() T = 0 F = 0 P = 0 for i in range(len(sol)): if sol[i] == ans[i] : T += 1 elif sol[i] == '-': P += 1 else : F += 1 print(T, F, P, (T*int(plus)-F*int(minus))) | # 6xxxxxxxx1: (point = 33%) sim = 100.0% sol,plus,minus = input().split(',') ans = input() T = 0 F = 0 P = 0 for i in range(len(sol)): if sol[i] == ans[i] : T += 1 elif sol[i] == '-': P += 1 else : F += 1 print(T, F, P, (T*int(plus)-F*int(minus))) |
: cluster #22(3)
# 6xxxxxxxx1: (point = 67%) sim = 99.0% S=input().split(",") X=input() a=S[0] i=0 score=0 cor=0 m=0 fal=0 while i<len(X) : if a[i]==X[i] : score+=int(S[1]) cor+=1 elif X[i]=="-" : score=score+0 m+=1 else : score-=int(S[2]) fal+=1 i+=1 print(cor,fal,m,score)\ | # 6xxxxxxxx1: (point = 67%) sim = 99.0% n=input().split(",") X=input() a=n[0] i=0 score=0 cor=0 m=0 fal=0 while i<len(X) : if a[i]==X[i] : score+=int(n[1]) cor+=1 elif X[i]=="-" : score=score+0 m+=1 else : score-=int(n[2]) fal+=1 i+=1 print(cor,fal,m,score)\ | # 6xxxxxxxx1: (point = 67%) sim = 97.0% s=input().split(",") y=input() a=s[0] i=0 score=0 cor=0 m=0 fal=0 while i<len(y) : if a[i]==y[i] : score+=int(s[1]) cor+=1 elif y[i]=="-" : score=score+0 m+=1 else : score-=int(s[2]) fal+=1 i+=1 print(cor,fal,m,score) |
: cluster #23(2)
# 6xxxxxxxx1: (point = 100%) sim = 97.0% ans,p,m=input().split(",") stu=input() p=int(p) m=int(m) point=0 t=0 d=0 f=0 for i in range (len(stu)): if(ans[i]==stu[i]): point+=p t+=1 elif(stu[i]=="-"): d+=1 else: point-=m f+=1 if(i<len(ans)): d+=len(ans)-i-1 if(point>=0): print(t,f,d,point) else: print(t,f,d,"0") | # 6xxxxxxxx1: (point = 100%) sim = 97.0% ans,p,m=input().split(",") stu=input() p=int(p) m=int(m) point=0 x=0 c=0 f=0 for i in range (len(stu)): if(ans[i]==stu[i]): point+=p x+=1 elif(stu[i]=="-"): c+=1 else: point-=m f+=1 if(i<len(ans)): c+=len(ans)-i-1 if(point>=0): print(x,f,c,point) else: print(x,f,c,"0") |
: cluster #24(2)
# 6xxxxxxxx1: (point = 100%) sim = 96.0% answer, score, minus = input().split(',') score = int(score) minus = int(minus) student = input() lst = ['-'] * len(answer) for i in range(len(student)): lst[i] = student[i] res = 0 do_count = 0 dont_count = 0 didnt_do = 0 for i in range(len(lst)): if lst[i] == '-': didnt_do +=1 elif lst[i] == answer[i]: res += score do_count += 1 else: res -= minus dont_count += 1 if res < 0: res = 0 print(do_count, dont_count, didnt_do, res) | # 6xxxxxxxx1: (point = 100%) sim = 96.0% answer, score, minus = input().split(',') score = int(score) minus = int(minus) a = input() lst = ['-'] * len(answer) for i in range(len(a)): lst[i] = a[i] res = 0 do_count = 0 dont_count = 0 didnt_do = 0 for i in range(len(lst)): if lst[i] == '-': didnt_do +=1 elif lst[i] == answer[i]: res += score do_count += 1 else: res -= minus dont_count += 1 if res < 0: res = 0 print(do_count, dont_count, didnt_do, res) |