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):
S = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
s = print()
result = abs(S.index(s)-S.index("SUN"))
print(result)

S = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
s = input()
result = abs(S.index(s)-S.index("SUN"))
if result ==0:
  result = 7
else:
  pass
print(result)

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("Enter The Day: ")
if(S == "SUN"):
    print(7)
    print("It is Sunday today, and seven days later, it will be Sunday again.")
elif(S == "SAT"):
    print(1)
    print("It is Saturday today, and tomorrow will be Sunday.")
elif(S == "MON"):
    print(6)
    print("It is Monday today, and six days later, it will be Sunday.")
elif(S == "TUE"):
    print(5)
    print("It is Tuesday today, and five days later, it will be Sunday.")
elif(S == "WED"):
    print(4)
    print("It is Wednesday today, and four days later, it will be Sunday.")
elif(S == "THU"):
    print(3)
    print("It is Thurusday today, and three days later, it will be Sunday.")
elif(S == "FRI"):
    print(2)
    print("It is Friday today, and two days later, it will be Sunday.")
else:
    print("Wrong Day Name")


s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for x in day:
    if x == s:
        print(len(day)-day.index(x))

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())
if S is "SUN":
  print(7)
elif S is "SAT":
  print(1)
elif S is "FRI":
  print(2)
elif S is "THU":
  print(3)
elif S is "WED":
  print(4)
elif S is "TUE":
  print(5)
elif S is "MON":
  print(6)

today=input()
a=['SUN','MON','TUE','WED','THU','FRI','SAT' ]
for i in range(7):
    if a[i%7]==today:
        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):
dic[]

dic["SUN"] = 7
dic["MON"] = 6
dic["TUE"] = 5
dic["WED"] = 4
dic["THU"] = 3
dic["FRI"] = 2
dic["SAT"] = 1

S = str()input()

print(dic[S])

dic = {}

dic["SUN"] = 7
dic["MON"] = 6
dic["TUE"] = 5
dic["WED"] = 4
dic["THU"] = 3
dic["FRI"] = 2
dic["SAT"] = 1

S = str(input())

print(dic[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':
  print(7)
elif s == 'SAT':
  print(1)
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)= input()
 

s = input()
if s = 'SUN':
  print(7)
elif s = 'SAT':
  print(1)
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)

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

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=str(input())
list=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(len(list)):
  if list[i]==S:
    if list[i]=='SAT':
      print('SUN')
      sys.exit()
    else:
      print(list[i+1])

import sys
S=str(input())
list=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(len(list)):
  if list[i]==S:
    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 = 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)

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):
s=input()
a=["SUN","MON","TUE","WED","THU","FRI","SAT"]
count=0
for i in range(7):
    if s==a[0]:
        break
    count+=1
print(7-count)


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


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("S")
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日後です")

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):
s=input()
day=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
  if s==day[i]:
    if i==0:
      print(7)
    else:
      print(i)

s=input()
day=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
  if s==day[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):
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()
if days.index(S) == 0:
  print(7)
else:
  print(days.index(S))

days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()
if days.get(S) == 0:
  print(7)
else:
  print(days.get(S))
    

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

Verdicts: 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=str(input())
a={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(a(S))

S=str(input())
a={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(a[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":
    print("MON")
elif S=="MON":
    print("TUE")
elif S=="TUE":
    print("WED")
elif S=="WED":
    print("THU")
elif S=="THU":
    print("FRI")
elif S=="FRI":
    print("SAT")
elif S=="SAT":
    print("SUN")

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):
a = input()
b = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ptint(7 - b.index(a))

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


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):
in = input()
d = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(d[in])

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

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

low = 0
high = 10 ** 10

for i in range(10 ** 9):

    if high - low == 1:
        if A * high + B * len(str(high)) <= X:
            print(high)
            break
        else:
            print(low)
            break

    if (high - low) % 2 == 0:
        N = (high - low) // 2 + low
        tmp = A * N + B * len(str(N))

        if tmp < X:
            low = N
        elif tmp > X:
            high = N
        elif tmp == X:
            print(N)
            break

    else:
        N = (high - low) / 2 + low
        floor = int(N)
        ceil = floor + 1

        tmp_floor = A * floor + B * len(str(floor))
        tmp_ceil = A * ceil + B * len(str(ceil))

        if tmp_floor < tmp_ceil < X:
            low = ceil
        elif X < tmp_floor < tmp_ceil:
            high = floor
        elif tmp_floor < X < tmp_ceil:
            low = floor
            high = ceil
        elif X == tmp_floor:
            print(N)
            break
        elif X == tmp_ceil:
            print(N)
            break



S = str(input())

x = 0

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

print(x)



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

if a in "SAT":
    print(1)
if a in "SUN":
    print(7)
    
if a in "MAN":
    print(6)
if a in "TUE":
    print(5)
    
if a in "WED":
    print(4)
if a in "THU":
    print(3)
if a in "SAT":
    print(2)

a=input()

if a in "SAT":
    print(1)
if a in "SUN":
    print(7)
    
if a in "MON":
    print(6)
if a in "TUE":
    print(5)
    
if a in "WED":
    print(4)
if a in "THU":
    print(3)
if a in "SAT":
    print(2)

a=input()

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

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):
S= input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i in days:
    if S==days[0]:
        print(0)
    elif S==days[i]:
        print(7-i)


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


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):
def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    return 7-youbi.index(ystr)

calc_aft(input())

def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    if(ystr in youbi):
        return 7-youbi.index(ystr)
    else:
        return

calc_aft(input())

def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    return 7-youbi.index(ystr)

calc_aft(input())

def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    if(ystr in youbi):
        return 7-youbi.index(ystr)
    else:
        return

print(calc_aft(input()))


Verdicts: Wrong Answer

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):
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
print(6 - day.index(s) if day.index(s) != 0 else 7)

day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
print(7 - day.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()

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

S = input()

d = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
print(d[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()

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

idx = weekdays.index(s)

ans = (idx + 1) % len(weekdays)

print(weekdays[ans])


s = input()

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

idx = weekdays.index(s)

ans = 7 - (idx + 1) % len(weekdays)

print(ans)


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

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)

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)

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("0")
elif S="MON":
  print("1")
elif S="TUE":
  print("2")
elif S="Wed":
  print("3")
elif S="THU":
  print("4")
elif S="FRI":
  print("5")
elif S="SAT":
  print("6")


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


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

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


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


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

Wrong Answer

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):
w = "SUN,MON,TUE,WED,THU,FRI,SAT".split(',')
s = input()
print(w[(w.index(s)+1)%7])

w = "SUN,MON,TUE,WED,THU,FRI,SAT".split(',')
t = w.index(input())
print(7-t)


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 = {'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'STA':1, 'SUN':7}

s = (input())
print(S[s])

S = {'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'STA':1, 'SUN':7}

s = str(input())
print = S[s]

S = {'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'STA':1, 'SUN':7}

s = input()
print = S[s]

S = {'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'STA':1, 'SUN':7}

s = input()
print(S[s])

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

s = input()
print(S[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):
s = input()
if s == "SUN":
    print(7)
elif s == "SAT":
    print(1)
elif s == "FRI":
    print(2)
elif s == "THU":
    print(3)
elif s == "WED":
    print(4)
elif s == "TUE":
    print(5)
elif s == "MON":
    print(6)
~               

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

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):
from sys import stdin
input = stdin.readline

s=str(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: 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()

def shifter(n, char):
    if ((ord(char) + n) > ord('Z')):
        n = n - 26
    
    return chr(ord(char) + n)

shifted_s = ''.join([shifter(n, char) for char in list(s)])

print(shifted_s)

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

print(len(S) - S.index(day))

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):
import sys
input = sys.stdin.readline
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)

import sys
input = sys.stdin.readline
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)

import sys
input = sys.stdin.readline
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)

import sys
input = sys.stdin.readline
s = input()
ans = 0
if s == 'SUN':
    ans = 7
elif s == 'MON':
    ans = 6
elif s == 'TUE':
    ans = 5
elif s == 'WED':
    ans = 4
elif s == 'THU':
    ans = 3
elif s == 'FRI':
    ans = 2
elif s == 'SAT':
    ans = 1
print(ans)

import sys
input = sys.stdin.readline
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()
ans = 0
if s == 'SUN':
    ans = 7
elif s == 'MON':
    ans = 6
elif s == 'TUE':
    ans = 5
elif s == 'WED':
    ans = 4
elif s == 'THU':
    ans = 3
elif s == 'FRI':
    ans = 2
elif s == 'SAT':
    ans = 1
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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):
S=input()
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)
elif S==SUN:
  print(7)
  

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)
elif S==SUN:
  print(7)
  

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)
elif S=="SUN":
  print(7)
  

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):
l={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(s[input()])

l={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(l[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):
yobi = [MON,TUE,WED,THU,FRI,SAT,SUN]
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

yobi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
yobi = yobi.reverse
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

yobi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
yobi = yobi.reverse()
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

yobi = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

yobi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
yobi.reverse()
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

Verdicts: Runtime Error

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):
input_date_list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
today_date_list = ['日', '月', '火', '水', '木', '金', '土']
s1 = input_date_list.index(S)
today_date = (today_date_list[s1])
s2 = 7 - s1
print("今日は{0}曜日です。".format(today_date)+"次の日曜日は{0}日後です".format(s2))


input_date_list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
today_date_list = ['日', '月', '火', '水', '木', '金', '土']
s1 = input_date_list.index(S)
today_date = (today_date_list[s1])
s2 = 7 - s1
print("今日は{0}曜日です。".format(today_date)+"次の日曜日は{0}日後です".format(s2))


input_date_list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
today_date_list = ['日', '月', '火', '水', '木', '金', '土']
s1 = input_date_list.index(S)
today_date = (today_date_list[s1])
s2 = 7 - s1
print(s2)




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

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):
I=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
    if I[i]==input():
        print(7-i)


s=input()
I=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
    if I[i]==s:
        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):
import math as ma
inputs = input().split(" ")
A = int(inputs[0])
B = int(inputs[1])
X = int(inputs[2])


max_num = 0
for x in range(1, 19):
    k = ma.floor((X - x*B) / A)
    # print(x, k)
    if len(list(str(k))) == x:
        max_num = k
        break
    elif len(list(str(k))) < x:
        break
    elif len(list(str(k))) > x:
        pass
if max_num > 1000000000:
    max_num = 1000000000
print(max_num)


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

print(num)

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)


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

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)

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: 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()
ns = {'SAT': 1, 'FRI': 2, 'THU': 3, 'WED': 4, 'TUE': 5, 'MON': 6, 'SUN': 7}
ns[d]

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

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()
 l=['SUN','MON','TUE','WED','THU','FRI','SAT']
 l.reverse()
 print(l.index(s)+1)

s=input()
l=['SUN','MON','TUE','WED','THU','FRI','SAT']
l.reverse()
print(l.index(s)+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):
s = str(input())

if s = "SUM":
  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 = "SUT":
  print(1)
  

s = str(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 == "SUT":
  print(1)

s = str(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

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

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

for i in range(7):
  if S==st[i]:
    print(i+1)

S = input()
 
st = ['SAT','FRI','THU','WED','TUE','MON','SUN']
 
for i in range(7):
  if S==st[i]:
    print(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):
a=input()
if a=="SUN":
  print(7)
if a=="MON":
  print(6)
if a=="TUE":
  print(5)
if a=="WED":
  print(4)
if a=="THU":
  print(3)
if a=="FRI":
  print(2)
if a=="SAT"
  print(1)

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

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



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 = 'MON'
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 = '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 = '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')
else:
    print('入力エラー')

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')
else:
    print('入力エラー')

Verdicts: Wrong Answer

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):
S=input()
if S=="MON" :
	print(1)
else if S=="TUE" :
	print(2)
else if S=="WED" :
	print(3)
else if S=="THU" :
	print(4)
else if S=="FRI" :
	print(5)
else if S=="STA" :
	print(6)
else if S=="SUN" :
	print(7)

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=="STA" :
	print(1)


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

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

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

input(S)
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")

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

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):
from sys import stdin
A,B,X=list(map(int,(stdin.readline().strip().split())))

left=0
right=10**(9)+1

while(right-left>1):
    num = left + (right - left) // 2
    cost=A*num+B*(len(str(num)))
    if cost<=X:
        left=num
    else:
        right=num
print(left)

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

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):
wd = {
  "SUN":("日曜日","7"),
  "MON":("月曜日","6"),
  "TUE":("火曜日","5"),
  "WED":("水曜日","4"),
  "THU":("木曜日","3"),
  "FRI":("金曜日","2"),
  "SAT":("土曜日","1")
}
line = input()

print("今日は" + wd[line][0] + "です。よって、次の日曜日は" + wd[line][1] +"日後です")

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

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

Verdicts: 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().split()
a=['SUN','MON','TUE','WED','THU','FRI','SAT']

for i in range(7):
  if a[i]==s:
    print(i)

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

for i in range(8):
  if a[i]==s:
    print(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):
x = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI',  'SAT', 'SUN']
y = x.index(input())
print(min(abs(6-y),abs(y)))

x = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI',  'SAT', 'SUN']
y = x.index(input())
if (y == 0):
      print(7)
else:
      print(7-y)


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()
ss = ['SUN','MON','TUE','WED','THU','FRI','SAT']
sss = [7,1,2,3,4,5,6]
for i in range(7):
    if s == ss[i]:
        print(sss[i])

s = input()
ss = ['SUN','MON','TUE','WED','THU','FRI','SAT']
sss = [7,6,5,4,3,2,1]
for i in range(7):
    if s == ss[i]:
        print(sss[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):
# -*- coding utf-8 -*-
hash = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2,'STA':1}
s = input()
print(hash[s])


# -*- coding utf-8 -*-
hash = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2,'SAT':1}
s = input()
print(hash[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):
a,b,x=map(int,input().split())
if a+b>x:
  print(0)
  exit()
k=(x-b)//a+1

while k>0:
  n=a*k+len(str(k))*b

  if n<=x:
    if n>10**9:
      print(10**9)
      exit()
    print(k)
    exit()
  k-=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

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

import math
def digit(n):
  return math.floor(math.log(n,10))+1
  
n_max = 10**9
n_min = 0

while((n_max-n_min)>1):
  key = (n_max+n_min)//2
  if a*key + b*digit(key) < x:
    n_min = key
  elif a*key + b*digit(key) > x:
    n_max = key

if n_max*a + b*digit(n_max) < x:
  print(n_max)
else:
  print(n_min)



s = input()

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

if s == 'SUN':
  print(7)
else:
  print(dic['SUN']-dic[s])

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

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):
k=["MON","TUE","WED","THU","FRI","SAT"]
s=input()
j="SUN"
if(s==j):
  print(7)
else:
  for a,i in enumerate k:
    if(s==i):
      print(6-a)

days=["MON","TUE","WED","THU","FRI","SAT","SUN"]
s=input()
for k,i in enumerate days:
  if(s=="SUN"):
    print(7)
  elif(s==i)
    print(6-k)


k=["MON","TUE","WED","THU","FRI","SAT"]
s=input()
j="SUN"
if(s==j):
  print(7)
else:
  for a,i in enumerate (k):
    if(s==i):
      print(6-a)


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):
# -*- coding: utf-8 -*-

list = [SUN,MON,TUE,WED,THU,FRI,SAT]

s = input()

a = list.index(s)

print(7 - b)


# -*- coding: utf-8 -*-
import sys

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

s = input()

if s in daylist:
    a = daylist.index(s)
    print(7 - a)
else:
    print("{} is not day of week".format(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':
	print('7')
elif s = 'MON':
	print('6')
elif s = 'TUE':
	print('5')
elif s = 'WED':
	print('4')
elif s = 'TUE':
	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: 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":
    x=7
elif S=="MON":
    x=6
elif S=="TUE":
    x=5
elif S=="WED":
    x=4
elif S=="THU":
    x=3
elif S=="FRI":
    x=2
elif S=="STU":
    x=1
    
print(x)

S=input()

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

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):
import math
import numpy as np
def get_price(a,b,n):
    return a * n + b * int (math.log10(n) + 1)    
a, b, x = map(int,input().split(' '))
currnt_max = 0
price_range = [get_price(a,b,10 ** i) for i in range(0,10)]    
price_range = np.asarray(price_range)

start = price_range[price_range < x].argmax()
end = 10 ** (start + 1)
start = 10 ** start
if start == 10 ** 9:
    print(10 ** 9)
    exit()

for i in range(start,10**9 + 1):
    tmp = get_price(a,b,i)
    if tmp < x:
        currnt_max = i
    else:
        break
print(currnt_max)

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

Verdicts: Runtime Error

Accepted