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 = input('enter character for S')
T = input('enter character for T')
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print(count)


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


S = input(list('enter character for S'))
T = input(list('enter character for T'))
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print('{}'.format(count))


S = input(list())
T = input(list())
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print('{}'.format(count))


S = input('enter character for S')
T = input('enter character for T')
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print('{}'.format(count))


S = input('enter character for S')
T = input('enter character for T')
count = 0
for i in range(len(S)):
	if S[i] == T[i]:
		count = count +1
print(count)


S = input('enter character for S')
T = input('enter character for T')
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print(str(count))


S = list(input())
T = list(input())
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print('{}'.format(count))


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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):
s = input()
t = input()
ans = 0
for i in range(3):
  if s[i]==s[t]:
    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):
print(sum(c is d for c, d in input(), input()))

s,t=input(),input()
print(sum(1 if c is d for c,d in zip(s,t)))


s,t=input(),input()
print(sum([1 if c is d for c,d in s,t]))

print(sum(c is d for c, d in zip(input(), input())))


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

print(ans)

a,b = map(int,input().split())
res = 0
c = 1
while c < b:
  c += a
  res += 1
        
print(res)


n = int(input())
ans = (n * (n + 1) / 2) - n
print(int(ans))

n = int(input())
a = (n * (n + 1) / 2) - n
ans = int(a)
print(ans)

a,b = map(int,input().split())
aaa = 0
c = 1
while c < b:
    c += a
    aaa += 1
        
print(aaa)


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

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()
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):
 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):
n=int(input())
x=[int(n) for n in input().split()]
a=[0]*n
for i in range(1,n):
  if x[i-1]>=x[i]:
    a[i]=1
m=0
c=0
for i in a:
  if i==1:
    c+=1
  else:
    m=max(c,m)
    c=0
print(m)

x=input()
y=input()
c=0
for i in range (len(x)):
  if x[i]==y[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()

ans = 1
for i,j in zip(s,t):
    if i == j:
        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: 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(str(input()))
T = list(str(input()))
ans = 0
if S[0] == T[0]:
    ans += 1
if S[1] == S[1]:
    ans += 1
if S[2] == S[2]:
    ans += 1
print(ans)


S = list(str(input()))
T = list(str(input()))
ans = 0
if S[0] == T[0]:
    ans += 1
if S[1] == T[1]:
    ans += 1
if S[2] == T[2]:
    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):
def culc(n):
    if n%2==0:
        return (n+1)*(n/2)-n
    if n%2==1:
        return (n+1)*((n-1)/2)+(n+1)/2-n

N = int(input())
if N == 1:
    print(0)
else:
    print(culc(N))

def culc(n):
    if n%2==0:
        return (n+1)*(n/2)-n
    if n%2==1:
        return (n+1)*((n-1)/2)+(n+1)/2-n

N = int(input())
if N == 1:
    print(0)
else:
    print(int(culc(N)))

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 = int(input())
total=10*10
if(S%2==1):
    total=S*((S-1)//2)
else:
    total=(S-1)*((S-2)//2)+(S-1)

print(total)

S = input()
T = input()

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

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 = [i for i in input().split()]
t = [i for i in input().split()]

counter = 0

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

print(counter)

s = [i for i in input()]
t = [i for i in input()]

counter = 0

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

print(counter)

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_list = list(input())
print(S_list)

T_list = list(input())
print(T_list)

l = 0
for i in range(2):
  if S_list[i] == T_list[i]:
    l = l + 1

print(l)

S_list = list(input())

T_list = list(input())

l = 0
for i in range(3):
  if S_list[i] == T_list[i]:
    l = l + 1

print(l)

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())
an = 1
ans = 0
while an < b:
    if ans == 0:
        an = a
    else:
        an = an - 1 + a  
    ans += 1

print(ans)

s = input()
t = input()

ans = 0
for i in range(len(s)):
    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):
weather1 = input().split()
weather2 = input().split()
match = 0
for i in range(0,2):
    if weather1[i] == weather2[i]:
        match += 1
print(match)

weather1 = input().split()
weather2 = input().split()
match = 0
for i in range(0,2):
    if weather1[i] == weather2[i]:
        match += 1
print(count)

weather1 = input().split()
weather2 = input().split()
match = 0
for i in range(0,2):
    if weather1[i] == weather2[i]:
        count += 1
print(count)

weather1 = input()
weather2 = input()
match = 0
for i in range(0,3):
    if weather1[i] == weather2[i]:
        match += 1
print(match)

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())
print(sum(range(1,N)))


import math
A,B=list(map(int,input().split()))
print(math.ceil(B/A))


import math
A=list(map(int,input().split()))
print(math.ceil(A[1]/A[0]))


S=list(input())
T=list(input())
if S[0]==T[0] and S[1]==T[1] and S[2]==T[2]:
  print(3)
elif S[0]==T[0] or S[1]==T[1] or S[2]==T[2]:
  print(1)
elif S[0]!=T[0] and S[1]!=T[1] and S[2]!=T[2]:
  print(0)
else:
  print(2)

S=list(input())
T=list(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] and S[2]!=T[2]:
  print(1)
elif S[0]!=T[0] and S[1]==T[1] and S[2]!=T[2]:
  print(1)
elif S[0]!=T[0] and S[1]!=T[1] and S[2]==T[2]:
  print(1)
elif S[0]!=T[0] and S[1]!=T[1] and S[2]!=T[2]:
  print(0)
else:
  print(2)


Verdicts: 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 = input()
b = input()

ans = 'Yes'
for i in range(3):
  if a[i] == b[i]:
    continue
  ans = 'No'
print(ans)

a = input()
b = input()

ans = 0
for i in range(3):
  if a[i] == b[i]:
    ans += 1
    continue
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):
# coding: utf-8
# Your code here!

s = input();
t = input();

#print(s);
#print(t);

count_t = 1;
count_all =0;
if s == t:
    print(3);

else:
    for i in s:
        #print(i);
        #print(t.startswith(i));
        strValue = t.count(i); 
        if strValue == 0:
            continue;
        else:
            if t.startswith(i):
                strValue -=1;
                if count_t ==1:
                    count_all +=1;
                    

            if t.endswith(i):
                strValue -=1;
                if count_t ==3:
                    count_all +=1;

            if count_t == 2:
                if strValue ==1:
                    count_all +=1;
                    print('count_all');
            count_t +=1;
    print(count_all);
# TODO: write code...

# coding: utf-8
# Your code here!

s = input();
t = input();

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

print(count_all);
# TODO: write code...


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

s = input()
n = input()
ans = 0
for i in range(3):
  if s[i] == n[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):
in_pred = input()
in_real = input()

i = 0
for a in in_pred:
  for b in in_real:
    if a == b:
      i += 1
      
return i


a = input()
b = input()

i = 0

for c in a:
  for d in b:
    if c == d:
      i = i + 1
      
print(i)

a = input()
b = input()

c = 0

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

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, = input()
*B, = input()
ans = 0
if A[0] == B[0]:
  ans += 1
elif A[1] == B[1]:
  ans += 1
elif A[2] == B[2]:
  ans += 1
print(ans)

*A, = input()
*B, = input()
ans = 0
if A[0] == B[0]:
  ans += 1
if A[1] == B[1]:
  ans += 1
if A[2] == B[2]:
  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):
S, T = list(input().split())

count = 0

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

S, T = list(input().split())

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

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 = [i for i in input()]
t = [i for i in input()]

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

s = [i for i in input()]
t = [i for i in input()]

a = 0
for i,j in zip(s,t):
  if i == j:
    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()
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: 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 = set(list(input()))
T = set(list(input()))
print(3 - len(S - T)) 

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)

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):
list = list(map(int, input().split()))

amount = 0
count = 0

while amount < list[1]:
    count += 1
    amount = count * (list[0] - 1) + 1 

print(count)


predict = list(input())
result = list(input())

count = 0

for i in range(len(predict)):
    if predict[i] == result[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 = list(map(int, input().split()))
T = list(map(int, input().split()))
a=0
for i in range(3):
    if S[i]==T[i]:
        a+=1
print(a)

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

S = input()
T = input()
a=0
for i in range(3):
    if S[i]==T[i]:
        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):
A,B=map(int,input().split())
for i in range(1,13):
  if 1+(A-1)*i>=B:
    print(i)
    exit()

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 = sys.stdin.readline()
B = sys.stdin.readline()
ans = 0

for i in range(3):
  if A[i] == B[i]:
    ans += 1
    
print(ans)

import sys

A = sys.stdin.readline()
B = sys.stdin.readline()
ans = 0

for i in range(3):
  if A[i] == B[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=map(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)

s, t=map(int, input().split())
cnt=0
for i in range(0, 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)

s=input()
t=input()
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

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):
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)

#define All(v) (v).begin(),(v).end()
int main() {
    string s,t;
    int ans=0;
    cin>>s>>t;
    rep(i,3){
        if(s[i]==t[i])ans++;
    }
    cout<<ans<<endl;
}


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

s = input()
t = input()
ans = 0
for i in range(3):
  if s[i]==t[i]:
    ans += 1
  else:
    pass
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('S:')
T = input('T:')

s = list(S)
t = list(T)

count = 0
for i, e in enumerate(s):
    if(e==t[i]):
        count += 1
        pass
    pass
print(count)

S = input()
T = input()

s = list(S)
t = list(T)

count = 0
for i, e in enumerate(s):
    if(e==t[i]):
        count += 1
        pass
    pass
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):
S = str(input())
T = str(input())

A = 0

for i in range(3):
    print("{} {}".format(S[i],T[i]))
    if S[i] == T[i]:
        A += 1

print(A)

A,B = [int(x) for x in input().split()]
print((B-1)//(A-1)+1)

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

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

in1 = input()
in2 = input()
c = 0
if in1[0] == in2[0]: c +=1
if in1[1] == in2[1]: c +=1
if in1[2] == in2[2]: 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):
c = 0

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

S = input()
T = input()
c = 0
for i in range(0,3):
  if S[i:i+1] == T[i:i+1]:
    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 in range(3):
if s[i]=s[i]:
ans+=1
print(ans)

a,b=map(input().split())
if a==b:
    print(3)
elif a!=b:
    print(0)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
else:
    print(1)  
     

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

a,b=minput().split()
if a==b:
    print(3)
elif a!=b:
    print(0)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
else:
    print(1)  
     


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

a,b=input().split()
if a==b:
    print(3)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]!=b[1] and a[2]!=b[2]:
    print(0)
else :
    print(1)  

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

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=list(map(input().split()))
t=list(map(input().split()))
x=0
for i in range(0,2):
  if s[i]=t[i]:
    x+=1
print(x)

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


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


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

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

s = input()
t = input()

count = 0
for i in range(len(s)):
  if s[i] == t[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):
S=input()
T=input()
c = 1 if S[0]==S[0] else 0
c += 1 if S[1]==S[1] else 0
c += 1 if S[2]==S[2] else 0
print(c)

S=input()
T=input()
c = 1 if S[0]==T[0] else 0
c += 1 if S[1]==T[1] else 0
c += 1 if S[2]==T[2] else 0
print(c)

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())
count = 1

for i in range(20):
    if b > count:
        count += a-1
    else:
        break
c = -(-count // a)
if a == b:
    print(c + 1)
elif count // a >= 1:
    print(c)
else:
    print(0)

a, b = map(int, input().split())
count = 1

for i in range(20):
    if b > count:
        count += a-1
    else:
        break
if -(-count // a) >= 1:
    print(-(-count // a))
else:
    print(0)

a, b = map(int, input().split())
c = 1
for i in range(20):
    if b > c:
        c += a-1
    else:
        break
print(-(-(c-1) // a-1))

a, b = map(int, input().split())

c = 1
for i in range(20):
    if b > c:
        c += a-1
    else:
        break
print(-(-c // a-1))

a, b = map(int, input().split())

c = 1
for i in range(20):
    if b > c:
        c += a-1
    else:
        break
print(-(-c // a-1)-1)

a,b,c = input()
d,e,f = input()
count = 0
if a == d:
    count+= 1
if b == e:
    count+= 1
if c == f:
    count+= 1
print(count)

Verdicts: 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 = list(input())
t = list(input())
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(2):
  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

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

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

s = list(input())
t = list(input())
count = 0

for i in range (0,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):
s = input()
t = input()
ans = 0
for i in range(3):
  if s[i] == t[i]:
    ans++
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,B = map(int, input().split())
cnt = 1
ans = 0
while cnt < B:
    cnt += A-1
    ans += 1
print(ans)

S=list(map(str,input()))
T=list(map(str,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):
# coding:utf-8
def main():
    n = int(input())
    h = list(map(int, input().split()))
    start_num = 0
    best_score = 1000
    best_sc = 0

    min_h = h.index(min(h))

    for i in range(n-1):
        score =  h[i] - h[i+1]
        if best_score >= score and score >= 0:
            if best_score == score:
                if h[i] > h[start_num]:
                    start_num = i
                    sc = 0
                    while  i != n - 1 and h[i] >= h[i+1] :
                        sc = sc + 1
                        i = i + 1
                    if best_sc <= sc:
                        best_sc = sc
                        best_score = score
            else:
                start_num = i
                sc = 0
                while  i != n - 1 and h[i] >= h[i+1] :
                    sc = sc + 1
                    i = i + 1
                    if best_sc <= sc:
                        best_sc = sc
                        best_score = score

    print(best_sc)





if __name__ == '__main__' :
    main()


# coding:utf-8
def main():
    a = list(input())
    b = list(input())
    count = 0

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

    print(count)


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):
S = input()
T = input()

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

S = input()
T = input()

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

Verdicts: Wrong Answer

Accepted