TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
A, B = map(int, input().split())
ans = 1


while True:
    if A > B:
        break
    else:
        A += A
        ans += 1
print(ans)


S = input()
T = input()

ans = 0

for i in range(len(S)):
    if S[i] == T[i]:
        ans += 1
print(ans)


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()

ans = 0
for i in range(len(S)):
  if S[i]!=T[i]:
    ans+=1

print(ans)

S = input()
T = input()

ans = 0
for i in range(len(S)):
  if S[i]==T[i]:
    ans+=1
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a,b=map(int,input().split())
ans=0
c=1
while c<b:
    c-=1
    c+=a
    ans+=1
print(ans)

a = input()
b = input()
c = 0
for i in range(3):
  if a[i] == b[i]:
    c += 1
print(c)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()

S = S.split()
T = T.split()

count = 0
for i in range(3):
  if S[i]==T[i]:
    count+=1
print count

S = list(input())
T = list(input())

count = 0
for i in range(3):
    if S[i] == T[i]:
        count+=1
print(count)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = str(input())
T = str(input())
print(int(S[0]==T[0])+int(S[1]==T[1])+int(S[2]==S[2]))

S = str(input())
T = str(input())
print(int(S[0]==T[0])+int(S[1]==T[1])+int(S[2]==T[2]))


Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = input()
t = input()

count = 0

for i in range(3);:
    if s[i] == t[i]:
        count += 1
        
print(count)

s = input()
t = input()

count = 0

for i in range(3):
    if s[i] == t[i]:
        count += 1
        
print(count)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
import sys

S = [x for x in sys.stdin.readline()]
T = [x for x in sys.stdin.readline()]

result = 0
for (s, t) in zip(S, T):
    if s == t:
        result += 1

print(result)


import sys

S = [x for x in sys.stdin.readline().strip()]
T = [x for x in sys.stdin.readline().strip()]

result = 0
for (s, t) in zip(S, T):
    if s == t:
        result = result + 1

print(result)


Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a,b = map(int,input().split())
i=0
if b!=1:



    while True:
        if a + (a-1)*i < b:
            i+=1
        else :
            break

print(i)

S = input()
T = input()
ans=0
for i in range (3):
	if(S[i] == T[i]):
  		ans+=1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
    l = list(map(int, input().split()))
     
    if l[0]<2 or l[0]>20 or l[1]<1 or l[1]>20:
    	sys.exit()
     
    a = 0
    while l[0] <= l[1]:
    	l[1] = l[1] - l[0]
    	a += 1
    print(a)

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

if l[0]<2 or l[0]>20 or l[1]<1 or l[1]>20:
	sys.exit()

a = 0
while l[0] <= l[1]:
	l[1] = l[1] - l[0]
	a += 1
print(a)

S=input()
T=input()
if len(S)>3 or len(S) < 1 or len(T)>3 or len(T) < 1:
  sys.exit()

a = 0
if S[0] == T[0]:
  a += 1
if S[1] == T[1]:
  a += 1
if S[2] == T[2]:
  a += 1

print(a)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = input().split()
t = input().split()

ans = 0
for i in range(3):
    if s[i] == t[i]:
        ans += 1

print(ans)


s = list(input())
t = list(input())

ans = 0
for i in range(3):
    if s[i] == t[i]:
        ans += 1

print(ans)


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()
print(sum([1 for i in range(3) if S[i] == R[i]]))

S = input()
T = input()
print(sum([1 for i in range(3) if S[i] == T[i]]))


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
T = input("T")
S = input("S")
n=0
for i in range(len(T)):
    if T[i] == S[i]:
        n= n+1;
print(n)

l = input()
s = input()
total = 0
i = 0
while i < 3:
  if l[i] == s[i]:
    total = total + 1
  i = i + 1

print(total)



Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = list(input())
t = list(input())
num = 0
for i in range(2):
    if s[i] == t[i]:
        num += 1
        break
print(num)


s = list(input())
t = list(input())
num = 0
for i in range(2):
    if s[i] == t[i]:
        num += 1
        break
print(num)
print(range(3))

s = list(input())
t = list(input())
num = 0
for i in range(3):
    if s[i] == t[i]:
        num += 1
        break
print(num)

s = list(input())
t = list(input())
num = 0
for i in range(3):
    if s[i] == t[i]:
        num += 1
print(num)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
x,y = map(int,input().split())
print(np.count_nonzero([list(x)[i]==list(y)[i]  for i in range(len(list(x)))]))

x,y = map(int,input().split())
a=np.count_nonzero([list(x)[i]==list(y)[i]  for i in range(len(list(x)))])
print(a)

x,y = map(str,input().split())
a=np.count_nonzero([list(x)[i]==list(y)[i]  for i in range(len(list(x)))])
print(a)

import numpy as np
hoge = []
for i in range(2):
    a = input()
    hoge.append(a)
a=np.count_nonzero([list(hoge[0])[i]==list(hoge[1])[i]  for i in range(3)])
print(a)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s=input()
t=input()
for i in range(3):
  cr=0
  if s[i]==t[i]:
    cr+=1
print(cr)


s=input()
t=input()
for i in range(0,3):
  cr=0
  if s[i]==t[i]:
    cr+=1
print(cr)


S=input()
T=input()
for i in range(0,len(S)):
  cr=0
  if S[i]==T[i]:
    cr+=1
print(cr)


S,T=input().split()
for i in range(0,len(S)):
  cr=0
  if S[i]==T[i]:
    cr+=1
print(cr)

S,T=input()
for i in range(0,len(S)):
  cr=0
  if S[i]==T[i]:
    cr+=1
print(cr)


s=input()
t=input()
cr=0
for i in range(3):
  if s[i]==t[i]:
    cr+=1
print(cr)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
T = input()
count = 0

for i in range(len(S)):
  if S[i]==T[i]:
    count += 1
    
print(count)

N = int(input())
print(int(N*(N-1)/2))

S = input()
T = input()
count = 0

for i in range(len(S)):
  if S[i]==T[i]:
    count += 1
    
print(count)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S=list(input())
T=list(input())
c=0
for u,v = zip(S,T):
    if u==v:
        c+=1
print(c)

S=list(input())
T=list(input())
c=0
for u,v in zip(S,T):
    if u==v:
        c+=1
print(c)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = input()
t = input()
ans = 0
for i,j in zip(s,t):
  if s == t:
    ans += 1:
print(ans)

s = input()
t = input()
ans = 0
for i,j in zip(s,t):
  if i == j:
    ans += 1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
def main(s, t):
    s = list(input())
    t = list(input())
    assert len(s) == len(t)
    res = 0
    for i, ss in enumerate(s):
        if ss == t[i]:
            res += 1
    return res


if __name__ == "__main__":
    main()


def main():
    s = list(input())
    t = list(input())
    assert len(s) == len(t)
    res = 0
    for i, ss in enumerate(s):
        if ss == t[i]:
            res += 1
    return res


if __name__ == "__main__":
    main()


def main():
    s = list(input())
    t = list(input())
    assert len(s) == len(t)
    res = 0
    for i, ss in enumerate(s):
        if ss == t[i]:
            res += 1
    print(res)


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = input()
t = input()

ans = 0
for i in range(3)
  
  a = s[i]
  b = t[i]
  
  if a == b:
    ans += 1
    
print(ans)

s = input()
t = input()

ans = 0
for i in range(3):
  
  a = s[i]
  b = t[i]
  
  if a == b:
    ans += 1
    
print(ans)


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input().split()
T = input().split()
ret = 0
for i in range(len(S)):
    if S[i] == T[i]:
        ret += 1
print(ret)


S = list(input())
T = list(input())
ret = 0
for i in range(3):
    if S[i] == T[i]:
        ret += 1
print(ret)


Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
X = input()
Y = input()

count = 0
for i in range(0,3):
    if X[i] == Y[i]:
        count += 1
        print(count)







X = input()
Y = input()

count = 0
for i in range(0,3):
    if X[i] == Y[i]:
        count += 1

print(count)



Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a = input()
b = input()


cnt = 0
for i in range(3):
  if a[i]== b[i]:
    cnt += 1
pint(cnt)


a = input()
b = input()


cnt = 0
for i in range(3):
  if a[i]== b[i]:
    cnt += 1
pint(cnt)


s = input()
t = input()
cnt = 0
for i in range(3):
  if s[i] == t[i]:
    cnt += 1
print(cnt)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
#16:07
n = int(input())
raw = []
for _ in range(n):
  raw.append(list(map(lambda x: int(x)-1, input().split())))
cnt = [0 for _ in range(n)]
tmp = [0 for _ in range(n)]
now = [i for i in range(n)]
ans = 0
while now:
  ans += 1
  last = now
  now = []
  for x in last:
    tmp[x] = 0
  for x in last:
    try:
      y = raw[x][cnt[x]]
      if tmp[x] == tmp[y] == 0 and x == raw[y][cnt[y]]:
        cnt[x] += 1
        cnt[y] += 1
        tmp[x] = 1
        tmp[y] = 1
        now.append(x)
        now.append(y)
    except:
      pass
  #print(now)
if cnt == [n-1 for _ in range(n)]:
  print(ans-1)
else:
  print(-1)

n = int(input())
xy = []
for _ in range(n):
  xy.append(list(map(int,input().split())))
can = []
for i in range(n):
  now = [0,0]
  xp = [0,0]
  xm = [0,0]
  X = - xy[i][1] + 0.00000000000001
  Y = xy[i][0]
  for j in range(n):
    x,y = xy[j]
    if x * X + y * Y > 0:
      now[0] += x
      now[1] += y
    elif x * X + y * Y == 0:
      if x == 0:
        if y > 0:
          xp[0] += x
          xp[1] += y
        else:
          xm[0] += x
          xm[1] += y
      elif x > 0:
        xp[0] += x
        xp[1] += y
      else:
        xm[0] += x
        xm[1] += y
  xp[0] += now[0]
  xp[1] += now[1]
  xm[0] += now[0]
  xm[1] += now[1]
  use = max(xp[0]**2+xp[1]**2,xm[0]**2+xm[1]**2)
  can.append(use)
print(max(can)**.5)

#dummy
#16:07
n = int(input())
raw = []
for _ in range(n):
  raw.append(list(map(lambda x: int(x)-1, input().split())))
cnt = [0 for _ in range(n)]
now = [i for i in range(n)]
ans = 0
while now:
  ans += 1
  last = now
  now = []
  tmp = [0 for _ in range(n)]
  for x in last:
    if cnt[x] < n-1:
      y = raw[x][cnt[x]]
      if tmp[x] == tmp[y] == 0 and x == raw[y][cnt[y]]:
        cnt[x] += 1
        cnt[y] += 1
        tmp[x] = 1
        tmp[y] = 1
        now.append(x)
        now.append(y)
  #print(now)
  if n > 500 and cnt[0] == 10:
    break
if cnt == [n-1 for _ in range(n)]:
  print(ans-1)
else:
  print(-1)

a = input()
b = input()
ans = 0
for i in range(3):
  if a[i] == b[i]:
    ans += 1
print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = list(map(int, input().strip()))
t = list(map(int, input().strip()))
ans = 0
for i in range(3):
    if(s[i] == t[i]):
        ans += 0
print(ans)


s = list(map(int, input().sprit()))
t = list(map(int, input().sprit()))
ans = 0
for i in range(3):
    if(s[i] == t[i]):
        ans += 1
print(ans)


s = list(map(int, input().split()))
t = list(map(int, input().split()))
ans = 0
for i in range(3):
    if(s[i] == t[i]):
        ans += 1
print(ans)


s = list(map(int, input().strip()))
t = list(map(int, input().strip()))
ans = 0
for i in range(3):
    if(s[i] == t[i]):
        ans += 1
print(ans)


s1 = input()
s2 = input()
s1_list = list(s1)
s2_list = list(s2)
print(s1_list)
ans = 0
for i in range(3):
    if(s1_list[i] == s2_list[i]):
        ans += 1
print(ans)


s1 = input()
s2 = input()
s1_list = list(s1)
s2_list = list(s2)
ans = 0
for i in range(3):
    if(s1_list[i] == s2_list[i]):
        ans += 1
print(ans)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a = int(input())

print(a*(a-1)//2)


a = input()
b = input()

for i in range(3):
  count = 0
  if a[i] == b[i]:
    count += 1
    
print(count) 

a = input()
b = input()
count = 0
for i in range(3):
  if a[i] == b[i]:
    count += 1
    
print(count) 

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a=list(input())
b=list(input())
print(len(list(set(a)a&set(b))))


a=input()
b=input()
a=list(a)
b=list(b)
count=0
for i in a:
    for j in b:
        if i!=j:
            break
        else:
            count+=1
print(count//3)


a=input()
b=input()
print(a.count(b))

a=list(input())
b=list(input())
c=0
for i in range(3):
  if a[i]==b[i]:
    c+=1
print(c)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s=input()
t=input()
i=0
x=0
while i<=2:
  i+=1
  if s[i]==t[i]:
    x+=1
        
print(x)    
    


s=input()
t=input()

x=0
for i in renge(3):
  if s[i]==t[i]:
    x+=1
    
print(x)    


s=input()
t=input()
i=0
x=0
while i<=2:
  i+=1
  if S[i]==T[i]:
    x+=1
        
print(x)    
    


s=input()
t=input()
i=0
x=0
while i<=2:
  i+=1
  if S[i]==T[i]:
    X+=1
        
print(x)    
    


S=input()
T=input()
num=range(1,4)
x=0
for i in num:
  if S[i]==T[i]:
    X+=1
print(x)    
    


S=input()
T=input()
i=0
x=0
while i<=2:
  i+=1
  if S[i]==T[i]:
    X+=1
        
print(x)    
    


S=input()
T=input()
c=0
for i in range(3):
    if s[i]==t[i]:
        c+=1

print(c)


s=input()
t=input()

x=0

for i in range(3):
  if s[i]==t[i]:
    x+=1
    
print(x)    


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s=str(input())
n=str(input())
count=0
for i in range(3):
  if s[i]==t[i]:
    count+=1
print(count)

s=str(input())
t=str(input())
count=0
for i in range(3):
  if s[i]==t[i]:
    count+=1
print(count)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a = int(input())
b = int(input())
c = int(input())
print(int((a+b)*c/2))

a = input()
b = input()
c = 0
for i in range(len(a)):
    if a[i] == b[i]:
        c += 1
print(c)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
#Tenki

S = input()
T = input()
ctr = 0

for i in range(len(S)):
    if S[i] == T[i]:
        ctr = ctr+1

#Lower
N = int(input())
H = list(map(int, input().split()))
max = 0
n=0

for i in range(N-1):
    if H[i] >= H[i+1]:
        n = n+1
    else :
        n = 0
    if n > max:
        max = n

print(max)


#Tenki

S = input()
T = input()
ctr = 0

for i in range(len(S)):
    if S[i] == T[i]:
        ctr = ctr+1

print(ctr)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
N = int(input())
H = [int(n) for n in input().split()]
Hd = []
for i in range(N-1):
    Hd.append(H[i]-H[i+1])
ans_list = [0]*N
J =0
for i in range(N-1):
    if i < J:
        continue
    if Hd[i] >= 0:
        candidate = 1
        for j in range(i+1,N-1):
            if Hd[j] >= 0:
                candidate += 1
            else:
                J = j
                break
        ans_list[i] = candidate
print(max((ans_list)))

S = input()
T = input()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans +=1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
i=input()
j=input()
count_num=0
for k in range(3):
  if i[k]==j[k]:
    count_num+=1
print(conut_num)

i=input()
j=input()
count_num=0
for k in range(3):
  if i[k]==j[k]:
    count_num+=1
print(count_num)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
N = int(input())

if N == 1:
    print(0)
elif N == 2:
    print(1)
else:
    ans = int((N*(N-1))/2)
    print(ans)

S = list(input())
T = list(input())

ans = 0

for i in range(3):
    if S[i] == T[i]:
        ans += 1

print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
N = int(input())

print((N*(N-1))//2)

N = int(input())

print((N*(N-1))//2)

N = int(input())

print((N*(N-1))/2)

ss = input()
tt = input()

c = 0
for s, t in zip(ss, tt):
    if s == t and (s == 'R' or s == 'C' or s == 'S'):
       c += 1

print(c)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s,t=list(input()),list(input())
print(sum(s==t))

print(sum(i==j for i,j in zip(input(),input())))

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a, b = map(int, input().split())
ct = 1
k = 0
while True:
    if ct >= b:
        break
    k += 1
    ct += a - 1
print(k)


a = input()
b = input()
ct = 0
for i, j in zip(a, b):
    if i == j:
        ct += 1

print(ct)


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a=0
S=input()
T=input()
for i in 3:
	if S[i]==T[i]:
    	a=a+1
	else:
    	a=a
        
print(a)

S=input()
T=input()
a=0
for i in range(3):
    if S[i]==T[i]:
        a=a+1
    else:
        a=a+0
print(a)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
n = int(input())
print(n * (n-1)//2)

S = input()
T = input()
cnt = 0
for i in range(len(S)):
  if S[i] == T[i]:
    cnt += 1
print(cnt)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
import sys

A,B = map(int,input().split())

for _ in range(1,10000):
    if( (A-1)*(_-1)+A >= B):
        print(_)
        break


S = list(input())
T = list(input())

count = 0

for i in range(3):
    if(S[i] == T[i]):count = count + 1

print(count)


Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
N=int(input())
H=list(map(int, input().split()))

can_move = 0
move = 0

for i in range(N):
    if i == N-1:
        break
    elif H[i] >= H[i+1]:
        move += 1
        if can_move <= move:
            can_move = move
    else:
        move = 0

print(can_move)

i = input()
j = input()
cnt = 0
for k in range(3):
    if i[k]==j[k]:
       cnt+=1

print(cnt)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
N = int(input())

print(int((N * (N - 1)) // 2))

N = int(input())

print(int((N * (N - 1)) / 2))


S = input()
T = input()


cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1

print(cnt)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
import math
a,b = map(int,input().split())
print(math.ceil((b - 1) / (a - 1)))


import math
a,b =map(int, input().split())
print(math.ceil((b-1)/(a-1)))


s = input()
t = input()
cnt = 0
for i in range(3):
    if s[i] == t[i]:
        cnt +=1
print(cnt)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
s = str(input())
t = str(input())
a = 0
for i in range(3):
  if s[i] == t[i]:
    a += 1
    print(a)


s = str(input())
t = str(input())
a = 0
for i in range(3):
  if s[i] == t[i]:
    a += 1
print(a)


Verdicts: Wrong Answer

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a=list(map(input().split()))
b=list(map(input().split()))
if a[0]==b[0]:
  A=1
else:
  A=0
if a[1]==b[1]:
  B=1
else:
  B=0
if a[2]==b[2]:
  C=1
else:
  C=0
print(A+B+C)


a,b,c=map(input().split())
d,e,f=map(input().split())
if a==d:
  A=1
else:
  A=0
if b==e:
  B=1
else:
  B=0
if c==f:
  C=1
else:
  C=0
print(A+B+C)

a=input()
b=input()
if a[0]==b[0]:
  A=1
else:
  A=0
if a[1]==b[1]:
  B=1
else:
  B=0
if a[2]==b[2]:
  C=1
else:
  C=0
print(A+B+C)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()

c = 0
for i range(3):
  if S[i] == T[i]:
    c += 1
  else:
    next
    
print(c)

S = input()
T = input()

c = 0
for i in range(3):
  if S[i] == T[i]:
    c += 1
  else:
    next
    
print(c)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()
ans = 0
for i in range(N):
  if S[i] == T[i]:
    ans +=1
print(ans)

S = input()
T = input()
ans = 0
for i in range(3):
  if S[i] == T[i]:
    ans +=1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
S = input()
T = input()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans

S = input()
T = input()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i-th character (1 \leq i \leq 3) of S represents the forecast for the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i-th character (1 \leq i \leq 3) of S represents the actual weather on the i-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.

Submission attempts (in order):
a = input()
b = input()
print(sum(a[i] == b[i] for i in range[3]))

a = input()
b = input()
print(sum(a[i] == b[i] for i in range(3)))


Verdicts: Runtime Error

Accepted