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):
s, t = list(input().split()), list(input().split())
print(len([s[i] == t[i] for i in range(len(s))

s, t = list(input().split()), list(input().split())
print(len([s[i] == t[i] for i in range(len(s))]))

s, t = list(input()), list(input())
print(len([1 for i in range(len(s)) if s[i] == t[i]]))

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())

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

ptint(count)

a = list(input())
b = list(input())

count = 0
for i in range(3):
  if a[i] == b[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):
s1 = list(map(str, input().split()))
s2 = list(map(str, input().split()))
ans = 0
for i in range(3):
  if s1[i] == s2[i]:
    ans += 1
print(ans)

x = input()
y = input()
ans = 0
for i in range(len(x)):
  for j in range(len(y)):
    if i == j:
      if li[i] == li[j]:
        ans += 1
print(ans)


x = input()
y = input()
ans = 0
for i in range(len(x)):
  for j in range(len(y)):
    if i == j:
      if x[i] == y[j]:
        ans += 1
print(ans)


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 = intpu()

score = 0
if S[0]==T[0]:
	score = score +1
  
if S[1]==T[1]:
    score=score+1
    
if S[2]==T[2]:
	score=score*1

print(score)
    

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

n = 1
c = 0

while n < B:
	n = n + A -1
	c = c+1
    
print(c)

S=input()
T=input()

score=0

if S[0] == T[0]:
  	score=score+1
if S[1] == T[1]:
  	score=score+1
if S[2] == T[2]:
	score=score+1
 
print(score)

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 x in range(len(S)):
  print(S[x],T[x])
  if S[x] == T[x]:
    c += 1
print(c)


S = list(map(int,input().split()))
T = list(map(int,input().split()))
c = 0
for x in range(S):
  if S[x] == T[x]:
    c += 1
print(c)


S = list(input())
T = list(input())
c = 0
for x in range(len(S)):
  if S[x] == T[x]:
    c += 1
print(c)


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 = list(map(int,input().split()))
ans = 0
ls = []
for i in range(n-1):
    if h[i] >= h[i+1]:
        ans += 1
    else:
        ls.append(ans)
        ans = 0
ls.append(ans)
print(max(ls))


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):
import sys
s = input().split()
weather_forecast = s[0]
weather_real = s[1]
weather_forecast_s = list(weather_forecast)
weather_real_s = list(weather_real)
hit = 0
for i in range(3):
    if weather_forecast_s[i] == weather_real_s[i]:
        hit+=1
print(hit)

import sys
s = input().split()
weather_forecast = s[0]
weather_real  = s[1]
weather_forecast_s = list(weather_forecast)
weather_real_s = list(weather_real)
hit = 0
for i in range(3):
    if weather_forecast_s[i] == weather_real_s[i]:
        hit+=1
print(hit)

import sys
s = input().split()
weather_forecast = s[0]
weather_real  = s[1]
weather_forecast_s = list(weather_forecast)
weather_real_s = list(weather_real)
hit = 0
for i in range(3):
    if weather_forecast_s[i] == weather_real_s[i]:
        hit+=1
print(hit)

import sys
weather_forecast = input()
weather_real = input()
weather_forecast_s = list(weather_forecast)
weather_real_s = list(weather_real)
hit = 0
for i in range(3):
    if weather_forecast_s[i] == weather_real_s[i]:
        hit+=1
print(hit)

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):
a = int(input())

b = int(input())

ans = int(0)

for i in range(1,21):
    if b > a*i-i+1:
            ans += 1
    else:
            ans += 1
            break

print(ans)


s = list(input())

t = list(input())

ans = int(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(int(n * (n - 1) / 2))

import numpy as np
n = int(input())
print(int(int(n * (n - 1)) / 2))


s = list(input())
t = list(input())
p = []

for i in range(0,3):
    p.append(s[i] == t[i])
    
print(p.count(True))

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):
A,B=map(int,input().split())
res=-(-B//A)
print(res)

S,T=map(iter,input().split())
cnt=0
for s,t in zip(S,T):
  if s==t:
    cnt+=1
print(cnt)


import sys
read=sys.stdin.buffer.read
S,T=map(iter,read().split())
cnt=0
for s,t in zip(S,T):
  if s==t:
    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, T = input().split()

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

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

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

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):
n=int(input())
print((n-1)*n//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

s = sys.stdin.gets()
t = sys.stdin.gets()

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

import sys

s = sys.stdin.readline()
t = sys.stdin.readline()

c = 0
for i in range(3):
  if s[i] == t[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):
a = input()
b = input()
c== 0
if a[0] = b[0]:
  c = c+1
if a[1] = b[1]:
  c= c+1
ifa[2] = b[2]:
  c= c+1
print(c)

def compare(a, b):
  	c=0
    for x, y in zip(a, b):
        if x == y:
          c += 1
x = input()
y = input()
compare(x,y)

def compare(a, b):
    c=0
    for x, y in zip(a, b):
        if x == y:
          c += 1
    return c
x = input()
y = input()
print(compare(x,y))

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):
    a = input()
    b = input()
    c = 0
    for i in range(3):
      if a[i] == b[i]:
        c += 1
    print(c)

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

a = input()
b = input()
c = 0
for i in range(3):
  if a[i] == b[i]:
    c += 1
print(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):
str = input().split("\r\n")
count = 0
for i in range(3):
    if str[0][i]==str[1][i]:
        count += 1

print(count)


import sys

str = sys.stdin.readlines()
# print(a)

s = str[0]
t = str[1]
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,t=open(0);print(sum([a==b for a,b in zip(s,t)]))

s,t = open(0)
cnt = 0
for si, ti in zip(s,t):
    cnt += si == ti
print(cnt)

s,t=open(0)
print(sum([a==b for a,b in zip(s,t)]))

s,t=open(0);print(sum([a==b for a,b in zip(s,t)]))

s,t=input(),input()
print(sum([a==b for a,b in zip(s,t)]))

Verdicts: Wrong Answer

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):
a=input()
b=input()
count=0
for i in range(3):
  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

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 = map(input().split())
cnt=0
for i in {1,2,3}:
    if S[i-1]==T[i-1]:
        C+=1
print cnt

S = input()
T = input()
cnt=0
for i in {1,2,3}:
    if S[i-1]==T[i-1]:
        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):
a,b = map(int,input().split())

count_p = 0
count = 0

if b = 1:
    print(count)

while True:
    if count == 0:
        count_p += a
    
    else:
        count_p += a-1
    
    count += 1
    
    if count_p >= b:
        break

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):
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):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

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

if __name__ == '__main__':
	main()

import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

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

if __name__ == '__main__':
	main()

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-1)*n//2))

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):
N = int(input())
print(int((N-1)*N/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):
a,b,c=input()
d,e,f=input()
list=[1 if a==d else 0,1 if a==d else 0,1 if a==d else 0]
print(list.count(1))

a,b,c=input()
d,e,f=input()
list=[1 if a==d else 0,1 if b==e else 0,1 if c==f else 0]
print(list.count(1))


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()
ans = 0

for i in range(3):
    if s[i] == t[i]:
        ans = 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,b=list(map(int,input().split()))
if b//a==0:
  print(b//a)
elif -(-b//a):
  print(-(-b//a))


s=list(input())
t=list(input())
ans=0
for i in range(len(s)):
  if s[i]==t[i]:
    ans+=1
    continue
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):
import math
N = int(input())
print(N*(N-1)/2)


S = input()
T = input()

c = 0

for i in range(len(S)):
  if S[i] == T[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):
import math
N = int(input())
n = 45

x = [None] * N
y = [None] * N
for i in range(N):
    x[i], y[i] = map(int, input().split())

ans = 0
for i in range(n):
    theta = (2 * math.pi / n) * i
    c = math.cos(theta)
    s = math.sin(theta)
    tmp_x = 0
    tmp_y = 0
    for j in range(N):
        if x[j] * c + y[j] * s > 0:
            tmp_x += x[j]
            tmp_y += y[j]
    if tmp_x**2 + tmp_y**2 > ans**2:
        ans = math.sqrt(tmp_x**2 + tmp_y**2)

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()
cnt = 0
for i in range(3):
    if s[0] == t[0]:
        cnt += 1
print(cnt)

s = input()
t = input()
res = list(map(lambda x: x[0] == x[1], zip(s, t)))
print(res.count(True))

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()

ans = S[0] ==T[0] + S[1] ==T[1] +S[2] ==T[2]
print(ans)

S = input()
T = input()

ans = (S[0] ==T[0])*1 + (S[1] ==T[1])*1 +(S[2] ==T[2])*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):
import sys
l = int(input())
s = list(map(int, input().split()))

while l > 0:
    for i in range(l-1):
        count = 1
        ss = s[i:i+l-2]
        for j in range(len(ss)-2):
            if ss[j] == ss[j+1]:
                count *= 1
            else:
                count *= 0
        if count == 1:
            print(i)
            sys.exit()
        l -= 1


S = input()
T = input()
count = 0
if S[0] == T[0]:
    count += 1

if S[1] == T[1]:
    count += 1

if S[2] == T[2]:
    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())
print(int(N * (N-1) // 2))

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

S = input()
T = input()

count = 0
for i in range(3):
    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 = input()
T = input()
cnt = 0

if S[0] === T[0]:
    cnt += 1

if S[1] === T[1]:
    cnt += 1

if S[2] === T[2]:
    cnt += 1

print(cnt)

S = input()
T = input()
cnt = 0

for i in range(3):
    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):
N = int(input())
H_list = input().split(" ")
max_count = 0

for i in range(0, N):
    S = int(H_list[i])
    count = 0
    for j in range(i + 1, N):
        if S >= int(H_list[j]):
            S = int(H_list[j])
            count += 1
        else:
            break
    if max_count < count:
        max_count = count
    if max_count >= N - i:
        break
print(max_count)


AB = input().split(" ")
A = int(AB[0])
B = int(AB[1])

kuti = 1
count = 0 #tap

while kuti < B:
  kuti -= 1
  kuti += A
  count += 1

print(count)
  

N = int(input())
H_list = input().split(" ")
H_LIST = []

for i in range(0, N):
    H_LIST.append(int(H_list[i]))
 
max_count = 0

for i in range(0, N):
    S = H_LIST[i]
    count = 0
    for j in range(i + 1, N):
        if S >= H_LIST[j]:
            S = H_LIST[j]
            count += 1
        else:
            pass
    if max_count < count:
        max_count = count

print(max_count)


S_list = input()
T_list = input()
count = 0

for i in range(0, 3):
  if S_list[i] == T_list[i]:
    count += 1
  else:
    pass
  
print(count)

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):
N = int(input())
A = [list(map(int, input().split(" "))) for i in range(N)]
count = [0 for i in range(N)]
Ns = [N - 1 for i in range(N)]
days = 0
alert = 0

while count != Ns:
    alert = 0
    already = [0 for i in range(N)]
    days = days + 1
    for i in range(N):
        if count[i] == N - 1:
            continue
        for j in range(i, N):
            if count[j] == N - 1:
                continue
            if count[j] == N - 1:
                continue
            if j == i:
                continue
            if already[i] == 0 and already[j] == 0 and j == A[i][count[i]] - 1 and i == A[j][count[j]] - 1:
                count[i] = count[i] + 1
                count[j] = count[j] + 1
                already[i] = 1
                already[j] = 1
                alert = 1
    if alert == 0:
        print(-1)
        break
    if count == Ns:
        print(days)


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


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 math
N = int(input())
xy = []
for i in range(N):
  x, y = map(int, input().split())
  xy += [(x, y, math.atan2(y,x))]
xy.sort(key=lambda val:val[2])
x_accum = [0]
y_accum = [0]
for i in range(N):
  x_accum += [x_accum[-1] + xy[i][0]]
  y_accum += [y_accum[-1] + xy[i][1]]
  
ans = 0
for i in range(N):
  for j in range(N):
    ans = max(ans,  math.hypot(x_accum[j]-x_accum[i] ,y_accum[j]-y_accum[i]))
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,t=input().split()
cnt=0
for i in range(3):
  if s[i]==t[i]:
    cnt+=1
print(cnt)


s=input()
t=input()
cnt=0
for i in range(3):
  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):
s,d = map(str, open(0).read().split())
ss = list(s)
dd = list(d)
a = 0
for i in range(ss):
  if(ss[i] == dd[i]):
    a += 1
    
print(a)

s,d = map(str, open(0).read().split())
ss = list(s)
dd = list(d)
a = 0
for i in range(len(ss)):
  if(ss[i] == dd[i]):
    a += 1
    
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):
s = input()
t = input()
x = 0
for i in 3:
  x += s[i-1]!=t[i-1]
print(x)

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

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=open(0);print(sum(i==j for i,j in zip(a,b)))

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

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):
import numpy as np
N = int(input())
n = N -1
print((n//2) * (2*1 + (n-1)*1))

S = input()
T = input()

c = 0
for s, t in zip(S, T):
  if s == t:
    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):
'''
CSS
CSR
'''
prin( sum([1 for x, y in zip(input(), input()) if x == y]

print( sum([1 for x, y in zip(input(), input()) if x == y]) )

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 in 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):
n = int(input())
print( int( n * (n+1)/2 - n) )


forcast = input()
reality = input()

count = 0
for f, r in zip(forcast, reality):
  if f == r:
    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):
s = input()
t = input()

c = 0

for i in s:
  for j in t:
    if i == j and s[i] == t[j]:
      c += 1

print(c)

s = input()
t = input()

if s[0] == t[0] and s[1] == t[1] and s[2] == t[2]:
  print(3)
elif (s[0] == t[0] and s[1] == t[1]) or (s[1] == t[1] and s[2] == t[2]) or (s[2] == t[2] and s[0] == t[0]):
  print(2)
elif s[0] == t[0] or s[1] == t[1] or s[2] == t[2]:
  print(1)
else:
  print(0)

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()

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

s = input()
t = input()

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

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 = 1
c = a-1
while a < b:
  a += c
  ans += 1
print(ans) 


S = input()
T = input()
ans = 0
for i in range(3):
    if T[i] == S[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=int(input())
T=int(input())

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

S=input()
T=input()

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

Verdicts: Runtime Error

Accepted