TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
def binary_search(A, B, X):
    intial_N = 0
    end_N = 10**20
    while (end_N - intial_N > 1):
        mid_N = round((intial_N + end_N) / 2)
        digits = len(str(mid_N))
        temp_value = A*mid_N + B*digits
        if (temp_value > X):
            end_N = mid_N
        elif (temp == X):
            return mid_N
        else:
            intial_N = mid_N 
    return intial_N
            
A, B, X = map(int, input().split())
int_N = binary_search(A, B, X)
print(int_N)

A = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
S = input()
cnt = 0
for i in range(7):
    if A[i] == S:
        break;
    cnt += 1
print(7 - cnt)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = str(input())
days = {"SUN":"7","MON":"6","TUE":"5","WED":"4","THU":"3","FRI":"2","SAT":"1"}
print(days{(S)})


S = str(input())
days = {"SUN":"7","MON":"6","TUE":"5","WED":"4","THU":"3","FRI":"2","SAT":"1"}
print(days(S))

S = str(input())
days = {"SUN":"7","MON":"6","TUE":"5","WED":"4","THU":"3","FRI":"2","SAT":"1"}
print(days[S])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = ["SUN", "MON","TUE","WED","THU","FRI","SAT"]
d = input()
for i in range(d):
  if d == S[i]:
    print(7 - i)
    break

S = ["SUN", "MON","TUE","WED","THU","FRI","SAT"]
d = input()
for i in range(7):
  if d == S[i]:
    print(7 - i)
    break


Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
if input()='SUN':
	print(7)
elif input()='MON':
  print(6)
elif input()='TUE':
  print(5)
elif input()='WED':
  print(4)
elif input()='THU':
  print(3)
elif input()='FRI':
  print(2)
elif input()='SAT':
  print(1)
end


if str(input())="SUN":
	print(7)
elif str(input())="MON":
  print(6)
elif str(input())="TUE":
  print(5)
elif str(input())="WED":
  print(4)
elif str(input())="THU":
  print(3)
elif str(input())="FRI":
  print(2)
elif str(input())="SAT":
  print(1)


if input()='SUN':
	print(7)
elif input()='MON':
  print(6)
elif input()='TUE':
  print(5)
elif input()='WED':
  print(4)
elif input()='THU':
  print(3)
elif input()='FRI':
  print(2)
else
  print(1)


if str(input())='SUN':
	print(7)
elif str(input())='MON':
  print(6)
elif str(input())='TUE':
  print(5)
elif str(input())='WED':
  print(4)
elif str(input())='THU':
  print(3)
elif str(input())='FRI':
  print(2)
elif str(input())='SAT':
  print(1)


if str(input())='SUN':
	print(7)
elif str(input())='MON':
  print(6)
elif str(input())='TUE':
  print(5)
elif str(input())='WED':
  print(4)
elif str(input())='THU':
  print(3)
elif str(input())='FRI':
  print(2)
elif str(input())='SAT':
  print(1)
end


if input()=='SUN':
	print(7)
elif input()=='MON':
  print(6)
elif input()=='TUE':
  print(5)
elif input()=='WED':
  print(4)
elif input()=='THU
  print(3)
elif input()=='FRI':
  print(2)
elif input()=='SAT':
  print(1)


if input()='SUN':
	print(7)
elif input()='MON':
  print(6)
elif input()='TUE':
  print(5)
elif input()='WED':
  print(4)
elif input()='THU
  print(3)
elif input()='FRI':
  print(2)
elif input()='SAT':
  print(1)


s=input()
if s=='MON':
  print(6)
elif s=='TUE':
  print(5)
elif s=='WED':
  print(4)
elif s=='THU':
  print(3)
elif s=='FRI':
  print(2)
elif s=='SAT':
  print(1)
else:
  print(7)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = "SUN"

if S == ("SUN"):
    print(7)
elif S == ("MON"):
    print(6)
elif S == ("TUE"):
    print(5)
elif S == ("WED"):
    print(4)
elif S == ("THU"):
    print(3)
elif S == ("FRI"):
    print(2)
elif S == ("SAT"):
    print(1)

S = input()

if S == ("SUN"):
    print(7)
elif S == ("MON"):
    print(6)
elif S == ("TUE"):
    print(5)
elif S == ("WED"):
    print(4)
elif S == ("THU"):
    print(3)
elif S == ("FRI"):
    print(2)
elif S == ("SAT"):
    print(1)

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
lis =['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
if s == 'SUN':
  print(7)
else:
  print(lis.index(s))

lis = ["SUN","SAT","FRI","THU","WED","TUE","MON"]
s = input()
if s == "SUN":
  print(7)
else:
  print(lis.index(s))

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
n = str(input())
dic = {SUN:7,
       MON:6,
       TUE:5,
       WED:4,
       THU:3,
       FRI:2,
       SAT:1}
print(dic(n))


n = str(input())
dic = {"SUN":7,
       "MON":6,
       "TUE":5,
       "WED":4,
       "THU":3,
       "FRI":2,
       "SAT":1}
print(dic[str(n)])

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s=input()
d={"SUN":7,"SAT":1,"MON":6,"FRI":2,"THU":3,"WED":4,"TUE":5}
print(s)

s=input()
d={"SUN":7,"SAT":1,"MON":6,"FRI":2,"THU":3,"WED":4,"TUE":5}
print(d[s])


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

if s == 'SUN':
    print('7')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

s = input('S:')

if s == 'SUN':
    print('0')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

s = input('S')

if s == 'SUN':
    print('7')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

s = input('S:')

if s == 'SUN':
    print('7')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

N = int(input())
S = input()

list_S = list(S)

for i in range(len(list_S)):
    list_S[i] = chr( ord(list_S[i]) + N )

    if ord(list_S[i]) > ord('Z'):
        list_S[i] = chr( ord('A') + ( ord(list_S[i])- ord('Z') ) -1 )

print("".join(list_S))

s = input()

if s == 'SUN':
    print('7')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = input()
ans = {'SUN': 7, 'MON': 6, 'TUE': 5 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(ans[S])

S = input()
ans = {'SUN': 7, 'MON': 6, 'TUE': 5 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(ans[S])

S = input()
ans = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(ans[S])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = 7 - index(input())
print(day[S])


day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = 7 - day.index(input())
print(S)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

days = {day:i+1 for i, day in enumerate(days)}

print(days[input()])

days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days = reversed(days)
days = {day:i+1 for i, day in enumerate(days)}

print(days[input()])

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
y=input()
# s=[[0 for i in range(m)] for j in range(n)]

# 	s[i]=list(input())
 # SUN,MON,TUE,WED,THU,FRI,SAT
if y=='SUN':
	print(7)
elif y=='MON':
	print(6)
elif y=='MON':
	print(5)
elif y=='MON':
	print(4)
elif y=='MON':
	print(3)
elif y=='MON':
	print(2)
elif y=='MON':
	print(1)


y=input()
# s=[[0 for i in range(m)] for j in range(n)]

# 	s[i]=list(input())
 # SUN,MON,TUE,WED,THU,FRI,SAT
if y=='SUN':
	print(7)
elif y=='MON':
	print(6)
elif y=='TUE':
	print(5)
elif y=='WED':
	print(4)
elif y=='THU':
	print(3)
elif y=='FRI':
	print(2)
elif y=='SAT':
	print(1)


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
day = input()
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans = 6;

for i in int(len(week)):
    if day != week[i]:
        ans -= 1
print(ans)


day = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ans = 7;

for i in range(len(week)):
    if day != week[i]:
        ans -= 1
    else:
        break
print(ans)


Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
days = ["SUN", 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
d = input()
print(days.index(d)+1)


days = ['0', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
d = input()
print(days.index(d))


days = ["SUN", 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days.reverse()
d = input()
print(days.index(d)+1)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):

def main(S):
    res = {v: k for k, v in enumerate('SAT FRI THU WED TUE MON SUN'.split(' '))}[S] + 1
    print(res)


if __name__ == "__main__":
    S = input('>')
    main(S)




def main(S):
    res = {v: k for k, v in enumerate('SAT FRI THU WED TUE MON SUN'.split(' '))}[S] + 1
    print(res)


if __name__ == "__main__":
    S = input('')
    main(S)



Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s = input()
weeks_dict = ["MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6,"SUN":7]
if(s=="SUN"):
    print(7)
else:
    print(7 - weeks_dict[s])


s = input()
weeks_dict = {"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6,"SUN":7}
if(s=="SUN"):
    print(7)
else:
    print(7 - weeks_dict[s])

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s = input()
a =['SUN','MON','TUS','WED','THU','FRI','SAT']
if a!= 'SUN':
	print(a.index(s))
else:
  print(7)

s = input()
a =['SUN','MON','TUS','WED','THU','FRI','SAT']
if s!= 'SUN':
	print(a.index(s))
else:
  print(7)

s = input()
a =['SUN','MON','TUE','WED','THU','FRI','SAT']

print(7-a.index(s))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
day = input()
if day == "SUN":
  print(7)
elif day == "MON":
  print(1)
elif day == "TUE":
  print(2)
elif day == "WED":
  print(3)
elif day == "THU":
  print(4)
elif day == "FRI":
  print(5)
elif day == "SAT":
  print(6)
else:
  print(-1)

day = input()
if day == "SUN":
  print("7")
elif day == "MON":
  print("1")
elif day == "TUE":
  print("2")
elif day == "WED":
  print("3")
elif day == "THU":
  print("4")
elif day == "FRI":
  print("6")
elif day == "SAT":
  print("7")
else:
  print(-1)

day = input()
if day == "SUN":
  return 7
elif day == "MON":
  return 1
elif day == "TUE":
  return 2
elif day == "WED":
  return 3
elif day == "THU":
  return 4
elif day == "FRI":
  return 5
elif day == "SAT":
  return 6
else:
  return -1


day = input()
if day == "SUN":
  print(7)
elif day == "MON":
  print(6)
elif day == "TUE":
  print(5)
elif day == "WED":
  print(4)
elif day == "THU":
  print(3)
elif day == "FRI":
  print(2)
elif day == "SAT":
  print(1)
else:
  print(-1)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
Cal={'SUN':7 , 'MON':6 , 'TUE':5 , 'WED':4 , 'THU':3 , 'FRI':2 , 'SUT':1}
print(Cal[input()])

Cal={'SUN':7 , 'MON':6 , 'TUE':5 , 'WED':4 , 'THU':3 , 'FRI':2 , 'SAT':1}
print(Cal[input()])

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
l =  ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = str(input())

print(int(7 - S.index()))l =  ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = str(input())

print(int(7 - l.index(S)))

l =  ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = str(input())

print(int(7 - l.index(S)))

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(7):
  if s=day[i]:
    print(7-i)

s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(7):
  if s==day[i]:
    print(7-i)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S=int(input())
MON=6
TUE=5
WED=4
THU=3
FRI=2
SAT=1
SUN=0
print(7-S)

S = input()
if S == "MON":
    print(6)
elif S == "TUE":
    print(5)
elif S == "WED":
    print(4)
elif S == "THU":
    print(3)
elif S == "FRI":
    print(2)
elif S == "SAT":
    print(1)
else :
    print(7)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
# coding: utf-8
# Your code here!

S = input()
if S == "MON":
    print(6)
elif S == "TUE":
    print(5)
elif S == "WED":
    print(4)
elif S == "THU":
    print(3)
elif S == "FRI":
    print(2)
elif S == "SAT":
    print(1)
else:
    print(7)

# coding: utf-8
# Your code here!

S = input()
if S == "MON":
	print(6)
elif S == "TUE":
	print(5)
elif S == "WED":
	print(4)
elif S == "THU":
	print(3)
elif S == "FRI":
	print(2)
elif S == "SAT":
	print(1)
else:
	print(7)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s=input()
l=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-l.index(s)

s=input()
l=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-l.index(s))

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S=input()
D=[SUN,MON,TUE,WED,THU,FRI,SAT]
Today=D.index(S)
print(7-Today)

S=input()
D=['SUN','MON','TUE','WED','THU','FRI','SAT']
Today=D.index(S)
print(7-Today)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
[A, B, X] = list(map(int, input().split()))
keta = list(range(1, 17, 1))
retun_N = []
for d in keta:
  max_x = (X - B * d) / A
  max_x = int(max_x)
  max_ket = len(str(max_x))
  if max_ket == d:
    retun_N.append(max_x)
if len(retun_N) != 0:
  print(retun_N[-1])
else:
  print("0")

S = str(input())
Week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i, day in enumerate(Week):
  if day == S:
    until = 7 - i
    print(until)
  else:
    pass

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):

N= input()
S= input()


N = int(N)
Len = len(S)
LIST = list(S)

ANSWER = ""

for SS in LIST:
    NUNBER = ord(SS)
    NUNBER = NUNBER -65
    AFFTER = NUNBER + N
    LAST  = AFFTER % 26
    LAST  = chr(LAST+65)
    ANSWER = ANSWER + LAST
    
print(ANSWER)

N= 3
S= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

N = int(N)
Len = len(S)
LIST = list(S)

ANSWER = ""

for SS in LIST:
    NUNBER = ord(SS)
    NUNBER = NUNBER -65
    AFFTER = NUNBER + N
    LAST  = AFFTER % 26
    LAST  = chr(LAST+65)
    ANSWER = ANSWER + LAST
    
print(ANSWER)

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


def nedan(N,A,B):
    Nmozi = str(N)
    lengs = len(Nmozi)
    ans = A * N  + B * lengs
    return ans



MAX = 1000000000
MIN = 0

for i in range(500):
    CENTER = MIN + (MAX-MIN)//2
    if MAX - MIN < 0.5:
        break

    if nedan(CENTER,A,B) <= X:
        MIN = CENTER
    else:
        MAX = CENTER



if nedan(MAX,A,B) <= X:
    ANS = MAX
else:
    ANS = MIN

print(ANS)

S = input()

if S =="SUN":
    print(7)
elif S =="MON":
    print(6)
elif S =="TUE":
    print(5)
elif S =="WED":
    print(4)
elif S =="THU":
    print(3)
elif S =="FRI":
    print(2)
else:
    print(1)



Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

if a == "SUN":
  print(0)
elif a  == "MON":
  print(6)
elif a  == "TUE":
  print(5)
elif a  == "WED":
  print(4)
elif a  == "THU":
  print(3)
elif a  == "FRI":
  print(2)
else a  == "sat":
  print(1)

a = input()


if  a  == "TUE":
  print(5)
elif a  == "WED":
  print(4)
elif a  == "THU":
  print(3)
elif a  == "FRI":
  print(2)
elif a  == "SAT":
  print(1)
elif a  == "SUN":
  print(0)
else a  == "MON":
  print(6)

a = input()


if  a  == "TUE":
  print(5)
elif a  == "WED":
  print(4)
elif a  == "THU":
  print(3)
elif a  == "FRI":
  print(2)
elif a  == "SAT":
  print(1)
elif a  == "SUN":
  print(7)
else:
  print(6)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

graph = [[] for i in range(N)]

for i in range(N -1):
    a, b = map(int, input().split())
    graph[a-1].append((b, i))
    graph[b-1].append((a, i))

print(graph)
ans = [0] * (N -1)


def dfs(past, now, color):
    new_color = 1
    for future, edge in graph[now - 1]:
        if future == past:
            pass
        else:
            if new_color == color:
                new_color += 1
            ans[edge] = new_color
            dfs(now, future, new_color)
            new_color += 1

dfs(-1, 1, -1)

print(max(ans))
for i in ans:
    print(i)

S = input()

days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

for i in range(7):
    if days[i] == S:
        print(7 - i)
        break


Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
A,B,X=map(int,input().split())
X=min(10**9,((X-B)//A)+1)
for  i in range(X):
  d=len(str(X-i))
  if A*(X-i)+B*d<=X:
    ans=X-i
    break
  if i==X-1:
    ans=0
print(ans)


A,B,X=map(int,input().split())
X=min(10**9,(X-B)//A+1)
for  i in range(X):
  d=len(str(X-i))
  if A*(X-i)+B*d<=X:
    ans=X-i
    break
  if i==X-1:
    ans=0
print(ans)

S=str(input())
list=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(6):
  if S==list[i]:
    print(7-i)

S=str(input())
list=["Sun","Mon","Tue","Wed","Thr","Fri","Sat"]
for i in range(6):
  if S==list[i]:
    print(7-i)

A,B,X=map(int,input().split())
x=min(10**9,int((X-B)/A)+1)
for  i in range(x):
  d=len(str(x-i))
  if A*(x-i)+B*d<=X:
    ans=x-i
    break
  if i==x-1:
    ans=0
print(ans)

S=str(input())
list=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
  if S==list[i]:
    print(7-i)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
a,b,x=map(int,input().split())
if a*10**9+b*10<=x:
  print(1000000000)
else:
  n=0
  for i in reversed(range(1,10)):
    max=(x-b*i)//a
    if len(str(max))==i:
      n=max
      break
    elif 10**(i-1)<=max<10**i:
      n=max
      break
  print(n)

s=input()
week=['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-week.index(s))

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

if S == "SUN":
    cmd = 0
elif S == "MON":
    cmd = 1
elif S == "TUE":
    cmd = 2
elif S == "WED":
    cmd = 3
elif S == "THU":
    cmd = 4
elif S == "FRY":
    cmd = 5
elif S == "SAT":
    cmd = 6

if cmd == 0:
    print(7)
else:
    print(cmd)

S = str(input())

if S == "SUN":
    cmd = 0
elif S == "MON":
    cmd = 1
elif S == "TUE":
    cmd = 2
elif S == "WED":
    cmd = 3
elif S == "THU":
    cmd = 4
elif S == "FRY":
    cmd = 5
elif S == "SAT":
    cmd = 6

if cmd == 0:
    print(7)
else:
    print(cmd)

S = input("")

if S == "SUN":
    cmd = 0
elif S == "MON":
    cmd = 1
elif S == "TUE":
    cmd = 2
elif S == "WED":
    cmd = 3
elif S == "THU":
    cmd = 4
elif S == "FRY":
    cmd = 5
elif S == "SAT":
    cmd = 6

if cmd == 0:
    print(7)
else:
    print(cmd)

S = str(input())

if S == "SUN":
    cmd = 0
elif S == "MON":
    cmd = 1
elif S == "TUE":
    cmd = 2
elif S == "WED":
    cmd = 3
elif S == "THU":
    cmd = 4
elif S == "FRI":
    cmd = 5
elif S == "SAT":
    cmd = 6

print(7-cmd)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s = str(input())
apple = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
print(apple[apple.index(s) + 1])

s = str(input())
apple = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
print(7-apple.index(s))

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
l=["MON","TUE","WED","THU","FRI","SAT","SUN"]
print(l.index(input())+1)

l=["SAT","FRI","THU","WED","TUE","MON","SUN"]
print(l.index(input())+1)

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
n = int(input())
s = list(str(input()))

n_s = ""

for c in s:
    add = n
    c_num = ord(c) - 64
    if(n % 26 == 0):
        n_s += c
    else:
        if(c_num + n > 26):
            add = (c_num + n) % 26
            n_s += chr(add + 64)
        else:
            n_s += chr(c_num + add + 64)

print(n_s)

day = str(input())

days = ["SAT","FRI","THU","WED","TUE","MON","SUN"]

for d in days:
    if(day == d):
        print(days.index(d) + 1)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
a = input()
b = 0
if a == "SAT"
    b = 1
if a == "SUN"
    b = 7
if a == "MON"
    b = 6
if a == "TUE"
    b = 5
if a == "WED"
    b = 4
if a == "THU"
    b = 3
if a == "FRI"
    b = 2
print(b)

a = input()
b = ""
if a == "SAT"
    b = 1
if a == "SUN"
    b = 7
if a == "MON"
    b = 6
if a == "TUE"
    b = 5
if a == "WED"
    b = 4
if a == "THU"
    b = 3
if a == "FRI"
    b = 2
return b

a = input()
b = 0
if a == "SAT":
    b = 1
if a == "SUN":
    b = 7
if a == "MON":
    b = 6
if a == "TUE":
    b = 5
if a == "WED":
    b = 4
if a == "THU":
    b = 3
if a == "FRI":
    b = 2
print(b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

print(s**2)

s = input()
dic = {SUN : 7,
       MON :6,
       TUE:5,
       WED:4,
       THU:3,
       FRI:2,
       SAT:1}

print(dic[s])

s = int(input())
f = input()
a = "ABCDEFGHIJKLNMOPQRSTUVWXYZ"
ans = ""
for i in f:
  ans += a[a.index(i)+s]

print(ans)


s = input()
dic = {'SUN':7,
       'MON':6,
       'TUE':5,
       'WED':4,
       'THU':3,
       'FRI':2,
       'SAT':1
      }

print(s[dic])

s = input()
dic = {'SUN':7,
       'MON':6,
       'TUE':5,
       'WED':4,
       'THU':3,
       'FRI':2,
       'SAT':1}

print(dic[s])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
import math

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

for i in range(int(x/a-1),10000000000000000000):
    if x < (a*i+b*int(math.log10(i)+1)):
        break

if i > 1:
    print(a*(i-1)+b*int(math.log10(i-1)+1))
elif i == 1:
    print(0)

s = input()

if s == "SUN":
    print("7")
elif s == "MON":
    print("6")
elif s == "TUE":
    print("5")
elif s == "WED":
    print("4")
elif s == "THU":
    print("3")
elif s == "FRI":
    print("2")
elif s == "SAT":
    print("1")

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
n=int(input())
s=list(input())
out_str=''
for i in s:
  m=ord(i)+n
  if m>90:
    m-=26
  out_str+=chr(m)

print(out_str)

s=input()
if s[0]=="S" or s[0]=="T":
  if s[2]=="E":
    print('5')
  elif s[2]=='U':
    print('3')
  elif s[2]=='T':
    print('1')
  else:
    print('7')
else:
  if s[1]=='R':
    print('2')
  elif s[1]=='O':
    print('6')
  else:
    print('4')



Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
s = input()
if s == 'Sun':
  s = 0
elif s == 'MON':
  s = 1
elif s == 'TUE':
  s = 2
elif s == 'WED':
  s = 3
elif s =='THU':
  s = 4
elif s == 'FRI':
  s = 5
elif s == 'SAT':
  s = 6
print(int(s) - 0)

s = input()
if s == 'Sun':
  s = 0
elif s == 'MON':
  s = 1
elif s == 'TUE':
  s = 2
elif s == 'WED':
  s = 3
elif s =='THU':
  s = 4
elif s == 'FRI':
  s = 5
elif s == 'SAT':
  s = 6
print(s - 0)

s = input()
if s == 'SUN':
  s = 0
elif s == 'MON':
  s = 1
elif s == 'TUE':
  s = 2
elif s == 'WED':
  s = 3
elif s =='THU':
  s = 4
elif s == 'FRI':
  s = 5
elif s == 'SAT':
  s = 6
print(s)

s = input()
if s == 'SUN':
  s = 7
elif s == 'MON':
  s = 6
elif s == 'TUE':
  s = 5
elif s == 'WED':
  s = 4
elif s =='THU':
  s = 3
elif s == 'FRI':
  s = 2
elif s == 'SAT':
  s = 1
print(s)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
l = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
print(l.index(input()) + 1)

print(7-["SUN","MON","TUE","WED","THU","FRI","SAT"].index(input()))

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

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

a = ['SUN','MON','TUE','WED','THU','FRI','SAT']


if s == 'SUN':
  print(0)
  exit()
else:
  print(a.index(s))

s = input()
 
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']
 
 
if s == 'SUN':
  print(7)
  exit()
else:
  print(7 - a.index(s))

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = input()
youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT' ]

print(youbi.index(S))


S = input()
youbi = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
youbi.reverse()

print(1 + youbi.index(S))


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
list = ['SUN','MON','TUE','WED','THU','FRI','SAT']

n = input()

for i in range(len(list)):
    if n == list[i] and n == 'SAT':
        print(list[0])
    elif n == list[i]:
        print(list[i+1])
    

list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
n = input()
for i in range(len(list)):
    if n == list[i]:
        print(7 -i)

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S= str(input())
l = ["MON","TUE","WED","THU","FRI","SAT", "SUN"]
i=1
for w in l:
    if w == S:
        print(i)
    else:
        i += 1


S= str(input())
l = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i=7
for w in l:
    if w == S:
        print(i)
    else:
        i -= 1


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = input('enter')
day ={
'SUN':7,
'MON':6,
'TUE':5,
'WED':4,
'THU':3,
'FRI':2,
'SAT':1,
}

print(day[S])


S = input()
day ={
'SUN':7,
'MON':6,
'TUE':5,
'WED':4,
'THU':3,
'FRI':2,
'SAT':1,
}

print(day[S])


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
print(sum(map(ord,input()))**698%6329%8)

print(-sum(map(ord,input()))**236%6133%8)

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
def resolve():
  s = input()
  ans = 1
  if s == 'SUN':
    ans = 7
  elif s == 'SAT':
    ans = 6
  elif s == 'FRI':
    ans = 5
  elif s == 'THU':
    ans = 4
  elif s == 'WED':
    ans = 3
  elif s == 'TUE':
    ans = 2
  print(ans)
  return

if __name__ == "__main__":
  resolve()


def resolve():
  s = input()
  ans = 1
  if s == 'SUN':
    ans = 7
  elif s == 'SAT':
    ans = 1
  elif s == 'FRI':
    ans = 2
  elif s == 'THU':
    ans = 3
  elif s == 'WED':
    ans = 4
  elif s == 'TUE':
    ans = 5
  elif s == 'MON':
    ans = 6
  print(ans)
  return

if __name__ == "__main__":
  resolve()


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
# 146A
S = input()

if S == 'SUN':
    answer = (7)
elif S == 'MON':
    answer = (6)
elif S == 'TUE':
    answer = (5)
elif S == 'WED':
    answer = (4)
elif S == 'THU':
    answer = (3)
elif S == 'FRI':
    answer = (2)


print(answer)

# 146A
S = input()

if S == 'SUN':
    answer = (7)
elif S == 'MON':
    answer = (6)
elif S == 'TUE':
    answer = (5)
elif S == 'WED':
    answer = (4)
elif S == 'THU':
    answer = (3)
elif S == 'FRI':
    answer = (2)
elif S == 'SAT':
    answer = (1)

print(answer)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
D = {"SUN": "MON", "MON": "TUE", "TUE": "WED",
     "WED": "THU", "THU": "FRI", "FRI": "SAT", "SAT": "SUN"}
S = input()
print(D[S])


D = {"SUN": 7, "MON": 6, "TUE": 5,
     "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
S = input()
print(D[S])


Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S=input()
if S==SUN:
  print('7日後')
elif S==MON:
  print('6日後')
elif S==TUE:
  print('5日後')
elif S==WED:
  print('4日後')
elif S==THU:
  print('3日後')
elif S==FRI:
    print('2日後')
else:
    print('1日後')

S=input()
if S==SUN:
  print('7')
elif S==MON:
  print('6')
elif S==TUE:
  print('5')
elif S==WED:
  print('4')
elif S==THU:
  print('3')
elif S==FRI:
  print('2')
else:
  print('1')

S=input()
if S==SUN:
  print('7日後')
  elif S==MON:
    print('6日後')
  elif S==TUE:
    print('5日後')
  elif S==WED:
    print('4日後')
  elif S==THU:
    print('3日後')
  elif S==FRI:
    print('2日後')
  else S==SAT:
    print('1日後')

S=input()
if S==SUN:
  print('7日後')
elif S==MON:
  print('6日後')
elif S==TUE:
  print('5日後')
elif S==WED:
  print('4日後')
elif S==THU:
  print('3日後')
elif S==FRI:
  print('2日後')
else S==SAT:
  print('1日後')

S=input()
if S=='SUN':
  print('7')
elif S=='MON':
  print('6')
elif S=='TUE':
  print('5')
elif S=='WED':
  print('4')
elif S=='THU':
  print('3')
elif S=='FRI':
  print('2')
else:
  print('1')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
weekdays = ["", "SAT", "FRI", "THU", "WED","TUE","MON", "SUN"]
w = input()
print(weedays.index(w))


weekdays = ["", "SAT", "FRI", "THU", "WED","TUE","MON", "SUN"]
w = input()
print(weedays.find(w))


weekdays = ["", "SAT", "FRI", "THU", "WED","TUE","MON", "SUN"]
w = input()
print(weekdays.index(w))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
import sys
s = input()
ls = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
ls_in = ls.index(s)
if s == "SUN":
    print(7)
    sys.exit()
print(ls_in)


import sys
s = input()
ls = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
lsin = ls.index(s)
if s == "SUN":
    print(7)
else:
    print(7 - lsin)

Verdicts: Wrong Answer

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
n = int(input())
s = input()

str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
alist = list(str)

print(alist)

d = input()

if(d == "SAT"):
  print(1)
elif(d == "SUN"):
  print(7)
elif(d == "MON"):
  print(6)
elif(d == "TUE"):
  print(5)
elif(d == "WED"):
  print(4)
elif(d == "THU"):
  print(3)
elif(d == "FRI"):
  print(2)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S = input()
if S == 'SUN':
    print(7)
elif S = 'MON':
    print(6)
elif S = 'TUE':
    print(5)
elif S = 'WED':
    print(4)
elif S = 'THU':
    print(3)
elif S = 'FRI':
    print(2)
else:
    print(1)


print(['SAT','FRI','THU','WED','TUE','MON','SUN'].index(input())+1)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
D = input()
W = ['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(7 - l.index(D))

D = input()
W = ['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(7 - W.index(D))


Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
S=input()
print(7 if S=="SUN" 6 if S=="MON" 5 if S=="TUE" 4 if S=="WED" 3 if S=="THU" 2 if S=="FRI" 1 if S=="SAT"

S=input()
print(7 if S==SUN 6 if S==MON 5 if S==TUE 4 if S==WED 3 if S==THU 2 if S==FRI 1 if S==SAT

S=input()
if S==SUN:
  print(7)
if S==MON:
  print(6)
if S==TUE:
  print(5)
if S==WED:
  print(4)
if S==THU:
  print(3)
if S==FRI:
  print(2)
if S==SAT:
  print(1)
  

S=input()
if S=="SUN":
  print(7)
if S=="MON":
  print(6)
if S=="TUE":
  print(5)
if S=="WED":
  print(4)
if S=="THU":
  print(3)
if S=="FRI":
  print(2)
if S=="SAT":
  print(1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
n = int(input())
s = input()

for ss in s:
    i = ord(ss)
    i += n
    if i > 90:
        i -= 26
    ss = chr(i)
    print(ss,end="")

n = int(input())
s = input()

for ss in s:
    i = ord(ss)
    i += n
    if i > 90:
        i -= 26
    ss = chr(i)
    print(ss,end="")

day_ = input()
next_sunday = {7:"SUN",6:"MON",5:"TUE",4:"WED",3:"THU",2:"FRI",1:"SAT"}
value = next_sunday[day_]
print(value)

day = input()
next_sunday = {1:"SAT",2:"FRI",3:"THU",4:"WED",5:"TUE",6:"MON",7:"SUN"}
value = next_sunday[day]
print(value)

s = input()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
N = int(input())
S = input()
string = list(S)

alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
            'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
            'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

#Generate empty output
output = ''

for i in range(len(S)):
    #Get the index of an alphabet in the list
    ind1 = alphabet.index(string[i])
    #Divide N by 26 and get the remainder
    ind2 = (int(ind1) + N) % 26
    #Update the letter and keep adding it to the list
    output += alphabet[ind2]

print(output)

S = input()
List = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
length = len(List)

for i in (range(length)):
    if S == List[i]:
        print(i+1)

Verdicts: Runtime Error

Accepted
Problem: Given is a string S representing the day of the week today.  S is `SUN`, `MON`, `TUE`, `WED`, `THU`, `FRI`, or `SAT`, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?

Submission attempts (in order):
# coding: utf-8

alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

num = int(input())
str = input()
result = ""

for s in str:
  pos = alpha.find(s)
  result += alpha[pos+num]

print(result)

# coding: utf-8

week = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}

str = input()

print(week[str])

Verdicts: Runtime Error

Accepted