TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
today = input()
weather = ["Sunny", "Cloudy", "Rainy"]
i = 0
for v in weather:
  if today == v:
    print(weather[(i+1)%3+1])
  i += 1

today = input()
weather = ["Sunny", "Cloudy", "Rainy"]
i = 0
for v in weather:
  if today == v:
    print(weather[(i+1)%3])
  i += 1

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = ['Sunny', 'Cloudy', 'Rainy']
print(s[index(input())+1 % 3])

s = ['Sunny', 'Cloudy', 'Rainy']
print(s[(s.index(input())+1) % 3])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = input()
if s == 'Sunny':
    print('Cloudy')
elif s ==  'Cloudy':
    print('Rainy'):
else:
    print('Sunny')


from collections import Counter
n, k, q = map(int, input().split())
a = [int(input()) for _ in range(q)]
ans = ['No'] * n
c = Counter(a)
for i in range(1, n+1):
    if c[i] > q - k:
        ans[i] = 'Yes'
for k in ans:
    print(k)


s = input()
if s == 'Sunny':
    print('Cloudy')
elif s ==  'Cloudy':
    print('Rainy')
else:
    print('Sunny')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=input()
a = 0
for i in range(len(S)):
  if i%2==1 :
    S[i] != "R"
    a += 1
  else:
    S[i] != "L"
    a += 1
if a == len(S):
  print("Yes")
else:
  print("No")

import numpy as np
N, K, Q = map(int, input().split())
S = []
for _ in range(Q):
    S.append(int(input())) 
P=np.array([K]*N)
for i in range(Q):
  P[S[i]-1]+=1
P -= Q
for i in range(N):
  if P[i] <= 0:
    print("No")
  else:
    print("Yes")

S=input()
if S=="Sunny" :
	print("Cloudy")
elif S=="Cloudy" :
	print("Rainy")
else :
	print("Sunny")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

if S is "Sunny":
  next = "Cloudy"
elif S is "Cloudy":
  next = "Rainy"
elif S is "Rainy":
  next = "Sunny"

print(next)

S = input()
pred = ""
if S == "Sunny":
  pred = "Cloudy"
elif S == "Cloudy":
  pred = "Rainy"
elif S == "Rainy":
  pred = "Sunny"

print(pred)


Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
package main

import "fmt"

func main() {
	var S string
	fmt.Scan(&S)
	weather := []string{"Sunny","Cloudy","Rainy","Sunny"}
	for i, wthr := range weather{
		if S == wthr {
			fmt.Println(weather[i+1])
			return
		}
	}
}


S = input()
weather = ['Sunny', 'Cloudy', 'Rainy']
if S == weather[0]:
    ans = weather[1]
elif S == weather[1]:
    ans = weather[2]
elif S == weather[2]:
    ans = weather[0]
print(ans)

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = list(input())
check = 0
for i in range(len(S)):
  if i % 2 == 0:
    if (S[i] == 'R' or S[i] == 'U' or S[i] == 'D') and len(S) >= 1 and len(S) <= 100:
        check += 1
  elif i % 2 == 1:
    if (S[i] == 'L' or S[i] == 'U' or S[i] == 'D') and len(S) >= 1 and len(S) <= 100:
        check += 1

if check == len(S):
    print('Yes')
else:
    print('No')
        

X = input()
if X == 'Sunny':
  print('Cloudy')
elif X == 'Cloudy':
  print('Rainy')
elif X == 'Rainy':
    print('Sunny')


Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

ans = ""

if(S="Sunny")
	print("Cloudy")
else if(S="Rainy")
	print("Sunny")
else
	print("Rainy")

S = input()

ans = ""

if(S=="Sunny")
	print("Cloudy")
else if(S=="Rainy")
	print("Sunny")
else
	print("Rainy")


S = input()

ans = ""

if S=="Sunny":
	print("Cloudy")
elif S=="Rainy":
	print("Sunny")
else:
	print("Rainy")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
T = ['Sunny','Cloudy','Rainy']
S = input()
print(T[1]) if S == T[0] elif print(T[2]) if S == T[1] else print(T[0])

T = ['Sunny','Cloudy','Rainy']
S = input()
print(T[1]) if S == T[0] else print(T[2]) if S == T[1] else print(T[0])


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
#atcoder beginner contest 141

#atcoder beginner contest 141
tap = input("")
tap_num = 0
success = 0

for char in tap:
    if tap_num % 2 == 0:
        if char =="R" or char == "U" or char == "D":
            success += 1
            
    else:
        if char =="L" or char == "U" or char == "D":
            success += 1

    tap_num += 1

if success == tap_num:
    print("Yes")
else:
    print("No")
            



#atcoder beginner contest 141

weather = input("")

if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")




Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = str(inpit())

if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

S = list(str(input()))


odd = S[0::2]


even = S[1::2]

if ('L' not in odd) & ('R' not in even):
    print('Yes')
else:
    print('No')

S = str(input())

if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
import numpy as np
n,k,q=map(int,input().split())	
listA=[] 
while True:
    try:
        listA.append(list(map(int,input().split())))
    except:
        break;
a=np.repeat(k,n)
for word in listA:
    a[word]+=1
result=[]
for i in range(len(a)):
    if a[i]<=0:
        print('No')
    else:
        print('Yes')

a=['Sunny', 'Cloudy', 'Rainy']
s=input()
if s==a[0]:
  print(a[1])
elif s==a[1]:
  print(a[2])
else:
  print(a[0])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s=input()
print('Cloudly' if s=='Sunny' else 'Rainy' if s=='Cloudly' else 'Sunny')

s=input()
if s=='Sunny':
  print('Cloudy')
if s=='Cloudy':
  print('Rainy')
else:
  print('Sunny')

s=input()
print('Cloudly' if s=='Sunny' else 'Rainy' if s=='Cloudy' else 'Sunny')

s=input()
print('Cloudy' if s=='Sunny' else 'Rainy' if s=='Cloudy' else 'Sunny')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = input()
if S == Sunny:
  print("Cloudy")
elif S ==  Cloudy:
  print("Rainy")
else:
  print("Sunny")

S = input()
if S == "Sunny":
  print("Cloudy")
elif S ==  "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=input('')
if S='Sunny':
  print('Cloudy')
elif S='Cloudy':
  print('Rainy')
else:
  print('Sunny')

S=input('')
if S=='Sunny':
  print('Cloudy')
elif S=='Cloudy':
  print('Rainy')
else:
  print('Sunny')


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):




today_weather = input('今日の天気を入力してね: ')
tommorow_weather = 'I do not know. Sorry!!'


if today_weather == 'Sunny':
    tommorow_weather = 'Cloudy'
elif today_weather == 'Cloudy':
    tommorow_weather = 'Rainy'
elif today_weather == 'Rainy':
    tommorow_weather ='Sunny'

print('明日の天気はコレだ -> ' + tommorow_weather)






today_weather = input('今日の天気を入力してね: ')
tommorow_weather = 'I do not know. Sorry!!'


if today_weather == 'Sunny':
    tommorow_weather = 'Cloudy'
elif today_weather == 'Cloudy':
    tommorow_weather = 'Cloudy'
elif today_weather == 'Rainy':
    tommorow_weather ='Sunny'

print('明日の天気はコレだ -> ' + tommorow_weather)






today_weather = input()
tommorow_weather = 'I do not know. Sorry!!'


if today_weather == 'Sunny':
    tommorow_weather = 'Cloudy'
elif today_weather == 'Cloudy':
    tommorow_weather = 'Rainy'
elif today_weather == 'Rainy':
    tommorow_weather ='Sunny'

print(tommorow_weather)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=input();print('Yes' if ('L' in S[::2]) == 1 or ('R' in S[1::2] == 1) else 'No')

wethear = ['Sunny','Cloudy','Rainy']
print(wethear[wethear.index(str(input())) - 2])

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = str(input())
for i in range(len(S)):
  if i % 2 == 0:
    if S[i] == 'L':
      print('No')
      exit()
    else:
      pass
  else:
    if S[i] == 'R':
      print('No')
      exit()
    else:
      pass
print('Yes')


s = input()

if s == "Sunny":
    print("Cloudy")
elif s == "Cloudy":
    print("Rainy")
elif s == "Rainy":
    print("Sunny")

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
n = int(input())
s = input()
dp = [0]*n
j = 1

for i in range(n):
    while s[i:j] in s[j:s]:
        j += 1
    dp[i] = j-i-1
print(max(dp))


n = input()
if n == "Sunny":
  print("Cloudy")
elif n == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = str(input())
if s == 'Sunny':
    print('Cloudy')
elif s == 'Cloudy'):
    print('Rainy')
else:
    print('Sunny')


s = str(input())
if s == 'Sunny':
    print('Cloudy')
elif s == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
N,K,Q = map(int,input().split(" "))
a=[]
a2={}

for i in range(Q):
  a.append(input())
  
for i in range(N):
  a2[i+1] = a.count(str(i+1))

for i in range(N):
  if a2[i+1] >= Q-K+1:
    print("Yes")
  else:
    print("No")

N,K,Q = map(int,input().split(" "))
a=[]
a2={}

for i in range(Q):
  a.append(input())
  
for i in range(N):
  a2[i+1] = a.count(str(i+1))

for i in range(N):
  if a2[i+1] >= Q-K+1:
    print("Yes")
  else:
    print("No")

a = ["Sunny","Cloudy","Rainy"]

def f():
  S = input() 
  return a[(a.index(S) + 1) % 3]

print(f())

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=str(input())
if S=="Sunny":
  print("Cloudy")
elif S=="Cloudy":
  print("Rainy")
elif S="Rainy":
  print("Sunny")


S=input()
if S=="Sunny":
  print("Cloudy")
elif S=="Cloudy":
  print("Rainy")
elif S="Rainy":
  print("Sunny")

S=input()
if S=="Sunny":
  print("Cloudy")
elif S=="Cloudy":
  print("Rainy")
elif S=="Rainy":
  print("Sunny")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
n = int(input())
s = input()
raw = []
for i in range(n):
  raw.append(s[i:])
raw.sort()

if all( raw[i-1][0] != raw[i][0] for i in range(1,n)):
  ans = 0
else:
  ans = 1
  for i in range(1,n):
    one = raw[i-1]
    two = raw[i]
    lone = len(one)
    ltwo = len(two)
    stop = min(lone,ltwo,abs(lone-ltwo))
    if ans > stop:
      pass
    else:
      for i in range(ans,stop):
        if one[i] == two[i]:
          ans += 1
print(ans)

s = input()
if s == 'Sunny':
  print('Cloudy')
elif s == 'Cloudy':
  print('Rainy')
else:
  print('Sunny')

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

if S == 'Sunny':
  print(Cloudy)
  
if S == 'Cloudy':
  print(Rainy)
  
if S == 'Rainy':
  print(Sunny)


S = int(input())

if S == 'Sunny':
  print(Cloudy)
  
if S == 'Cloudy':
  print(Rainy)
  
if S == 'Rainy':
  print(Sunny)

S = input()

if S == 'Sunny':
  print('Cloudy')
  
if S == 'Cloudy':
  print('Rainy')
  
if S == 'Rainy':
  print('Sunny')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
a=input()
n=['Sunny','Cloudy','Rainy']
if a==n[2]:
  print(n[0])
else:
  print(n[2-n.index(a)])

a=input()
n=['Sunny','Cloudy','Rainy']
print(n[2-n.index(a)])

a=input()
n=['Sunny','Cloudy','Rainy']
print(2-n.index(a))

s=input()
if s=="Sunny":
    print("Cloudy")
elif s=="Cloudy":
    print("Rainy")
else:
    print("Sunny")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s=input()
l=('Ensoleillé','Nuageux', 'Pluvieux','Ensoleillé')
for i in range (len(l)-1):
    if l[i]==s:
        print(l[i+1])


s=input()
l=(ensoleillé, nuageux, pluvieux)
if s in l:
    for i in len (l):
        if l(i)==s:
            print(l(i+1))
else :
    print ('autre')

s=input()
l=('Sunny','Cloudy', 'Rainy','Sunny')
for i in range (len(l)-1):
    if l[i]==s:
        print(l[i+1])


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = input()
if s == "Suney":
    print("Cloudy")
elif s == "Cloudy":
    print("Rainy")
elif s == "Rainy":
    print("Suney")

s = input()
if s == "Sunny":
    print("Cloudy")
elif s == "Cloudy":
    print("Rainy")
elif s == "Rainy":
    print("Sunny")

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
input(S)
if S=Sunny:
  print('Cloudy')
elif S=Cloudy:
  print('Rainy')
elif S=Rainy:
  print('Sunny')

S=input()
if S=='Sunny':
    print('Cloudy')
elif S=='Cloudy':
    print('Rainy')
elif S=='Rainy':
    print('Sunny')

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s=input()
if s=="Sunny":print("Cloudy")
elif s=="Cloudy":print("Rainy")
else print("Sunny")

s=input()
if s=="Sunny":print("Cloudy")
elif s=="Cloudy":print("Rainy")
else:print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
N, M = map(int,input().split())
A = list(map(int,input().split()))
for i in range(M):
  max_item = A.index(max(A))
  A[max_item] //= 2
print(sum(A))

S = input()
weather = ['Sunny', 'Cloudy','Rainy']
if S == weather[0]:
  print(weather[1])
elif S == weather[1]:
  print(weather[2])
else:
  print(weather[0])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
str = input()

split = str.split(" ")

N = int(split[0])
M = int(split[1])

HowMuch = [0 for i in range(N)]

split = input().split(" ")
for i in range(N):
  HowMuch[i] = int(split[i])
  
sortHow = HowMuch.sort(reverse = True)

if sortHow is None:
  sortHow = HowMuch[0]

if type(sortHow) is int:
  for i in range(M):
    sortHow //= 2
  print(sortHow)
else:
  for i in range(M):
    maxInd = sortHow.index(max(sortHow))
    sortHow[maxInd] //= 2
  print(sum(HowMuch))

str = input()

if str == "Sunny":
  print("Cloudy")
elif str == "Cloudy":
  print("Rainy")
else:
  print("Sunny")
  

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

A = list(map(int, input().split()))
def soujyuu(left, right, num):
    if right - left <= 1:
        A.insert(right, num)
    else:
        if num >= A[left + right // 2]:
            left = left + right // 2
        else:
            right = left + right // 2
        soujyuu(left, right, num)


A.sort()
for i in range(M):
    maxA = A.pop(N-1)
    maxA = maxA // 2
    soujyuu(0,N-2, maxA)
    #print(A)

print(sum(A))


S = input()

if S == "Sunny":
    print("Cloudy")
elif S == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

a = [int(input()) for i in range(n[2])]

for i in range(n[0]):
    if n[1]-(n[2]-a.count(i+1)) <= 0:
        print('No')
    else:
        print('Yes')


import numpy as np
n = list(map(int,input().split()))
a = np.array(list(map(int,input().split())))
print(a)
for i in range(n[1]):
    a[a.argmax()] = a[a.argmax()]//2 
print(np.sum(a))


import numpy as np


n,m = map(int,input().split())
a = np.array(list(map(int,input().split())))
for i in range(m):
    a[a.argmax()] = a[a.argmax()]//2 
print(np.sum(a))


s = input()

if s == 'Sunny':
    print('Cloudy')
elif s == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')



Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
input = input(“天気を入力：”)
items = {'apple': 100, 'banana': 200, 'orange': 400}
print( items[input] )

input = input(“天気を入力：”)
items = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy': 'Sunny'}
print( items[input] )

input = input(“天気を入力：”)
items = {'Sunny': 'Cloudy', 'Cloudy': ‘Rainy’, 'Rainy': 'Sunny'}
print( items[input] )

input = input("天気を入力：")
items = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy': 'Sunny'}
print( items[input] )


input = input()
items = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy': 'Sunny'}
print( items[input] )


Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
weathers = ['Sunny', 'Cloudy', 'Rainy' ]
s = str(input())
t = weathers.index(s)
print(weathers[2-t])


weathers = ['Sunny', 'Cloudy', 'Rainy' ]
s = str(input())
t = weathers.index(s)
print(weathers[t-2])

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
cur = input()
if cur == "Sunny":
  print("Cloudy")
else if cur == "Rainy":
  print("Sunny")
else:
  print("Rainy")

l = ["Sunny", "Cloudy", "Rainy", 'Sunny']
print(l[l.index(input()) + 1])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
today = input()
if today == Sunny:
  print ("Cloudy")
if today == Cloudy:
  print ("Rainy")
if today == Rainy:
  print ("Sunny")
  

a = input()
if a == "Sunny":
  print ("Cloudy")
if a == "Cloudy":
  print ("Rainy")
if a == "Rainy":
  print ("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
n, k, q = map(int, input().split())
points = []
minus = []
for i in range(n):
    points.append(k)
    minus.append(-1)
for i in range(q):
    a = int(input())
    points = np.array(points) + np.array(minus)
    points[a - 1] += 1
for point in points:
    if point > 0:
        print("Yes")
    else:
        print("No")


s = input()
if s == "Sunny":
    print("Cloudy")
elif s == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
a = input()
for i in range(len(s_l)):
	if a == s_l[i]:
        try:
            print(s_l[i+1])
        except:
            print(s_l[-1])
        break

for i in range(len(s_l)):
    if a == s_l[i]:
        try:
            print(s_l[i+1])
        except:
            print(s_l[-1])
        break

a = input()
weather_dict = {
    'Sunny' : 'Cloudy',
    'Cloudy': 'Rainy',
    'Rainy' : 'Sunny'
}
print(weather_dict[a])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = input
if S == "Sunny":
  print("Cloudy")
elif S =="Rainy":
  print("Sunny")
else :
  print("Rainy")

S = input()
if S == "Sunny":
  print("Cloudy")
elif S =="Rainy":
  print("Sunny")
else :
  print("Rainy")

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
d = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
print(d[s])

s = input()
d = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
print(d[s])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
def weather_prediction():
    today = input()
    print(tomorrow_weather_q today)

def tomorrow_weather_q(today):
    if today == "Sunny":
        return "Cloudy"
    elif today == "Cloudy":
        return "Rainy"
    elif today == "Rainy":
        return "Sunny"
    else:
        return 0

weather_prediction()
    


def weather_prediction():
    today = input()
    print(tomorrow_weather_q(today))

def tomorrow_weather_q(today):
    if today == "Sunny":
        return "Cloudy"
    elif today == "Cloudy":
        return "Rainy"
    elif today == "Rainy":
        return "Sunny"
    else:
        return 0

weather_prediction()

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
import heapq

N, M = tuple(map(int, input().split()))
A = list(map(lambda a: -1*int(a), input().split()))
heapq.heapify(A)

for _ in range(M):
    x = heapq.heappop(A)
    heapq.heappush(A, -(-x//2))

print(-1*sum(A))

S  = list(input())

a = S[0]

if a =="S":
    print("Cloudy")
elif a == "C":
    print("Rainy")
else:
    print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=list(input())
K="Yes"
for i in range (0,len(S)):
	if i%2==0:
		if S[i]=="L" :
			K="No"
			break
		else:
			continue
	else :
		if S[i]=="R" :
			K="No"
			break
		else:
			continue
print(K)

S=list(input())
K="Yes"
for i in range (0,len(S)):
	if i%2==0:
	    if S[i]=="L" :
        	K="No"
        	break
        else:
        	continue
    else :
		if S[i]=="R" :
        	K="No"
        	break
    	else:
        	continue
print(K)


S=list(input())
K="Yes"
for i in range (0,len(S)):
	if i%2==0:
		if S[i]=="L" :
        	K="No"
			break
		else:
        	continue
	else :
		if S[i]=="R" :
			K="No"
			break
		else:
			continue
print(K)

S=input()
if S[0]=="R":
    print("Sunny")
elif S[0]=="S":
    print("Cloudy")
else:
    print("Rainy")



Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
a = input()
weather = ["Sunny","Cloudy","Rainy"]
print(weather[(weather.index(a)+1)//3])

weather = ["Sunny","Cloudy","Rainy"]
print(weather[weather.index(input())-2])

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = str(input())
L = ('Sunny', 'Cloudy', 'Rainy')
print(L[L.index(S)%3-1])


S = str(input())
L = ('Sunny', 'Cloudy', 'Rainy')
print(L[(L.index(S)+1)%3])


Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

lst = ['Sunny', 'cloudy', 'Rainy']

if S == lst[0]:
    print(lst[1])

elif S == lst[1]:
    print(lst[2])
else:
    print(lst[0])


S = input()

lst = ['Sunny', 'Cloudy', 'Rainy']

if S == lst[0]:
    print(lst[1])

elif S == lst[1]:
    print(lst[2])
else:
    print(lst[0])


Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
l = ["Sunny", "Cloudy", "Rainy"]
w = input()

if l.index(w) = 2:
    print("Sunny")

else:
    print(l[l.index(w) + 1])

l = ["Sunny", "Cloudy", "Rainy"]
w = input()

if l.index(w) == 2:
    print("Sunny")

else:
    print(l[l.index(w) + 1])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):

S = input()

weather = ["Sunny", "Cloudy", "Rainly"]
print(weather[(weather.index(s)+1)%3])



S = input()

weather = ["Sunny", "Cloudy", "Rainy"]
print(weather[(weather.index(S)+1)%3])


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

for i in range(N):
    if i == 0:
        ans += B[0]
    elif i == N-1:
        ans += B[-1]
    else:
        ans += min(B[i-1],B[i])
print(ans)


S = input()
if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
elif S == 'Rainy':
    print('Sunny')


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
import math
N,M=map(int,input().split())
#print(N,M)
a = list(map(float,input().split()))
#print(a)
a.sort(reverse=True)
#print(a)
k=0
maxa=a[0]/2
while M>0:
#  print(M,k,maxa,a)
  if a[k]>=maxa:
    a[k]=a[k]/2
    M=M-1
  if k==len(a)-1:
    a.sort(reverse=True)
    k=0
    maxa=a[0]
    if maxa<1:
      break
    continue
  if a[k]<a[k+1]:
    if maxa<a[k]:
      maxa=a[k]
    k=k+1
  elif a[k]<maxa:
    if maxa<a[k]:
      maxa=a[k]
    k=k+1
#print(a)
total=0
for t in a:
  total+=int(t)
#  print(t,total)
print(total)

s=input()
if s=="Sunny":
  print ("Cloudy")
elif s=="Cloudy":
  print ("Rainy")
else:
  print ("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s=input()
if s='Sunny':
  print('Cloudy')
elif s='Cloudy':
  print('Rainy')
else:
  print('Sunny')

s=input()
if s=='Sunny':
  print('Cloudy')
elif s=='Cloudy':
  print('Rainy')
else:
  print('Sunny')


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
next_weather = {'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}
print(next_weahter[input()])

next_weather = {'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}
print(next_weather[input()])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s=input()
l=["Suny","Cloudy","Rainy","Sunny"]
print(l[l.index(s)+1])


s=input()
if s=="Sunny":print ("Cloudy")
if s=="Cloudy":print("Rainy")
if s=="Rainy":print("Sunny")


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = input()
l = ['Sunny', 'Cloudy', 'Rainy', 'Sunny']
for i in l:
    if s == i:
        print(l[l.index(s) + 1])

s = input()
if s == 'Sunny':
    print('Cloudy')
elif s == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S=input()
flag=False
for i in range(len(S)):
  if i%2==0:
    if S[i]!='R' and S[i]!='U' and S[i]!='D':
      flag=True
  else:
    if S[i]!='L' and S[i]!='U' and S[i]!='D':
      flag=True
if flag==True:
  print('No')
else:
  print('Yes')


S=input()

Wea=['Sunny','Cloudy','Rainy']

if S==Wea[0]:
  print(Wea[1])
elif S==Wea[1]:
  print(Wea[2])
else:
  print(Wea[0])

Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = str( input() )
listw = [ "Sunny", "Cloudy", "Rainy" ]
ind = listw.index( S )
print( listw.append( "Sunny" )[ind+1] ) 

S = input()
listw = [ "Sunny", "Cloudy", "Rainy" ]
ind = listw.index( S )
listw = listw.append( "Sunny" )
print( listw[ind+1] ) 


S = input()
listw = [ "Sunny", "Cloudy", "Rainy" ]
ind = listw.index( S )
print( listw.append( "Sunny" )[ind+1] ) 

S = input()
listw = [ "Sunny", "Cloudy", "Rainy" ]
ind = listw.index( S )
if ind == 2 : 
   ind = -1
print( listw[ind+1] ) 

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
# -*- coding: utf-8 -*-
S=str(input())
if(S="Sunny"):
    print('Cloudy')
elif(S="Cloudy"):
    print('Rainy')
else: print('Sunny')


# -*- coding: utf-8 -*-
S=str(input())
if(S=="Sunny"):
    print('Cloudy')
elif(S=="Cloudy"):
    print('Rainy')
else: print('Sunny')


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

if S == "Sunny":
	print("Cloudy")
elif S == "Cloudy":
	  print("Rainy")
else S == "Rainy":
	  print("Sunny")

S = input()

if S == "Sunny":
    print("Cloudy")
elif S == "Cloudy":
	print("Rainy")
else:
	print("Sunny")


Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
N,M = map(int, input().split())
A = []
for X in input().split():
	x = int(X)
	A.append(x)

for x in range(M):
	max = A.index(max(A))
	A[max] = A[max] / 2

sum = 0
for x in range(len(A)):
	sum += int(A[x])

print(sum)


input = input()

if input == "Sunny":
	print("Cloudy")
elif input == "Cloudy":
	print("Rainy")
elif input == "Rainy":
	print("Sunny")
else:
	print("Invalid value")



Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
a = input()
if a == "Sunny":
    print("Cloudy")
elif a == "Rainy":
    print("Sunny")
else a == "Cloudy":
    print("Rainy")

a = input()
if a == "Sunny":
    print("Cloudy")
elif a == "Rainy":
    print("Sunny")
elif a == "Cloudy":
    print("Rainy")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
today = input()
if today == Sunny:
  tomorrow = Cloudy
elif today == Cloudy:
  tomorrow = Rainy
else:
  tomorrow = Sunny
print(tomorrow)

today = input()
if today == 'Sunny':
  tomorrow = 'Cloudy'
elif today == 'Cloudy':
  tomorrow = 'Rainy'
else:
  tomorrow = 'Sunny'
print(tomorrow)

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
S = input()
if S = 'Sunny':
  print ('Cloudy')
elif S = 'Cloudy':
  print ('Rainy')
else:
  print ('Sunny')

S = input()
if S == 'Sunny':
  print ('Cloudy')
elif S == 'Cloudy':
  print ('Rainy')
else:
  print ('Sunny')

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
n = int(input())
if n == "Sunny":
  print("Cloudy")
elif n== "Cloudy":
  print("Rainy")
else:
  print("Sunny")

n = int(input())
print(n)


n = str(input())
if n == "Sunny":
  print("Cloudy")
elif n== "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
Weather = [Sunny, Cloudy, Rainy, Sunny]
S = input()
print(Weather[Weather.index(S)+1])

Weather = ["Sunny", "Cloudy", "Rainy", "Sunny"]
S = input()
print(Weather[Weather.index(S)+1])

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

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

S=input()

if S =='Sunny':
  print('Cloudy')
elif S =='Cloudy':
  print('Rainy')
else:
  print('Sunny')





Verdicts: Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
I = input()
I = I.split(" ")
N = I[0]
K = I[1]
Q = I[2]

A = [0]*Q

for i in range(Q):
	A[i] = int(input())

point = [0]*N

for i in range(Q):
	point[A[i]-1] = point[A[i]-1] + 1

for i in range(Q):
	if point[i] > 0:
		print("yes")
	else:
		print("no")

str = input()

if str is "Sunny":
	print("Cloudy")
elif str is "Rainy":
	print("Sunny")
else:
	print("Rainy")

str = input()

if str == "Sunny":
	print("Cloudy")
elif str == "Rainy":
	print("Sunny")
else:
	print("Rainy")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
import collections
def main():
    li = list(map(int,input().split()))
    respondents = [int(input()) for i in range(li[2])]
    number_of_respondes = respondes_number_of_participants(respondents)
    check_surviver(number_of_respondes,li[0],li[1],li[2])


def respondes_number_of_participants(respondents):
    return collections.Counter(respondents)


def check_surviver(number_of_respondes,number_of_participants,gived_points,number_of_questions):
    for i in range(number_of_participants):
        if number_of_respondes[i+1]:
            if gived_points - number_of_questions + number_of_respondes[i+1] > 0:
                print("Yes")
            else:
                print("No")
        else:
            if gived_points - number_of_questions > 0:
                print("Yes")
            else:
                print("No")

if __name__ == "__main__":
    main()


def participants_maker(number_of_participates,point):
    return [point]*number_of_participates



def point_getter(participates,respondents):
    for i in range(len(respondents)):
        participates = list(map(lambda x : x-1, participates))
        participates[respondents[i]-1] += 1
    return participates

def discriminate_serviver(result_score):
    for i in range(len(result_score)):
        if result_score[i] <= 0:
            print("NO")
        else:
            print("YES")








def main():
    li = list(map(int,input().split()))
    respondents = [int(input()) for i in range(li[2])]
    participates = participants_maker(li[0],li[1])
    result_score = point_getter(participates,respondents)
    discriminate_serviver(result_score)


if __name__ == "__main__":
    main()


S = input()

if S == "Sunny":
    print("Cloudy")
elif S == "Rainy":
    print("Sunny")
else:
    print("Rainy")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
import sys
N,K,Q =map(int,input().split())
F = {}
A = []
for l in sys.stdin:
    A.append(int(l))
for i in range(N):
    cnt = A.count(i+1)
    F[str('A'+ str(i+1))] = K - (Q - cnt)
    if F[str('A'+ str(i+1))] >= 1 :
        print("Yes")
    else:
        print("No")


N=input()
if N == "Sunny" :
    print("Cloudy")
elif N == "Cloudy" :
    print("Rainy")
else:
    print("Sunny")

Verdicts: Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
def main():
    def func(s):
        return ord(s)-ord('a')

    n=int(input())
    s=input()
    s=[func(s[i]) for i in range(n)]
    sign=0
    ans=0
    for i in range(n-1):
        for j in range(i+1,n):
            if s[j]==s[i+sign] and i+2*sign<j:
                sign+=1

            else:
                if sign>ans: ans=sign
                sign=0
        
        if sign>ans: ans=sign
        sign=0

    print(ans)
        

if __name__ == '__main__':
    main()

def main():
    def func(s):
        return ord(s)-ord('a')

    n=int(input())
    s=input()
    s=[func(s[i]) for i in range(n)]
    sign=0
    ans=0
    for i in range(n-1):
        if ans>(n-i)//2: break
        for j in range(i+1,n):
            if s[j]==s[i+sign] and i+2*sign<j:
                sign+=1
    
            else:
                ans=max(sign,ans)
                sign=0
                
        ans=max(sign,ans)
        sign=0

    ans=max(sign,ans)
    print(ans)
            

if __name__ == '__main__':
    main()

def main():
    def func(s):
        return ord(s)-ord('a')

    n=int(input())
    s=input()
    s=[func(s[i]) for i in range(n)]
    sign=0
    ans=0
    for i in range(n-1):

        if ans>(n-i)/2: break

        for j in range(i+1,n):
            if s[j]==s[i+sign] and i+2*sign<j:
                sign+=1

            else:
                if sign>ans: ans=sign
                sign=0
        
        if sign>ans: ans=sign
        sign=0

    print(ans)
        

if __name__ == '__main__':
    main()

def main():
    ans=["Sunny","Cloudy","Rainy"]
    print(ans[(ans.index(input())+1)%3])
if __name__ == '__main__':
    main()

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...  Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Submission attempts (in order):
s = input()
weather = ["Sunny", "Cloudy", "Rainy"]

print((weather.index(s)+1)%3)

s = input()
weather = ["Sunny", "Cloudy", "Rainy"]

print(weather[(weather.index(s)+1)%3])

Verdicts: Wrong Answer

Accepted