ZhenlongDai/ACPR huggingface dataset:
Problem: p02574
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from math import gcd


def main():
    num = int(input())
    array = [int(x) for x in input().split()]
    
    
    
    
    
    
    
    
    
    

    cop = True
    now_gcd = array[0]
    for n in array[1:]:
        now_gcd = gcd(now_gcd, n)
        if now_gcd != 1:
            cop = False
    if cop:
        return 'pairwise coprime'
    elif now_gcd == 1:
        return 'setwise coprime'
    else:
        return 'not coprime'


if __name__ == '__main__':
    print(main())


Failing test case input:
3
4 19 4

Expected output:
setwise coprime


Actual output:
pairwise coprime


Fixed submission (verdict: Accepted):
from math import gcd


def main():
    input()  
    array = [int(x) for x in input().split()]
    MAX_A = 10 ** 6 + 2
    histgram = [0] * MAX_A
    for x in array:
        histgram[int(x)] += 1
    pairwise = True
    for divider in range(2, MAX_A):
        count = 0
        for counted in histgram[divider::divider]:
            count += counted
        if count > 1:
            pairwise = False
    if pairwise:
        return 'pairwise coprime'
    gcd_now = 0
    for x in array:
        gcd_now = gcd(x, gcd_now)
    if gcd_now == 1:
        return 'setwise coprime'
    else:
        return 'not coprime'


if __name__ == '__main__':
    print(main())

Problem: p02574
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
input = sys.stdin.buffer.readline

def main():
    N = int(input())
    a = list(map(int,input().split()))
    pr = [0]*(max(a)+1)
    flag = True
    for num in a:
        pr[num] += 1
    for i in range(2, max(a)+1):
        count = sum(pr[i::i])
        if count == N:
            print("not coprime")
        elif count > 1:
            flag = False
    if flag:
        print("pairwise coprime")
    else:
        print("setwise coprime")

if __name__ == "__main__":
    main()


Failing test case input:
3
4 6 2

Expected output:
not coprime


Actual output:
not coprime
pairwise coprime


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.buffer.readline

def main():
    N = int(input())
    a = list(map(int,input().split()))
    pr = [0]*(max(a)+1)
    flag = True
    for num in a:
        pr[num] += 1
    for i in range(2, max(a)+1):
        count = sum(pr[i::i])
        if count == N:
            print("not coprime")
            exit()
        elif count > 1:
            flag = False
    if flag:
        print("pairwise coprime")
    else:
        print("setwise coprime")

if __name__ == "__main__":
    main()
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
d={"SUN":7,"SAT":1,"MON":6,"FRI":2,"THU":3,"WED":4,"TUE":5}
print(s)

Failing test case input:
SAT

Expected output:
1

Actual output:
SAT


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
week=["SUN","MON","TUE","WED","THU","FRI","SAT"]
date=input()
for i in range(7):
	if week[i] == date:
		if i==0:
			print(0)
		else:	
			print(7-i)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
week=["SUN","MON","TUE","WED","THU","FRI","SAT"]
date=input()
for i in range(7):
	if week[i] == date:
		print(7-i)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day=input()
if (day=="SUN"):
  print(0)
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)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

print(dict['SUN'] - dict[S])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()
 
dict = {
  'SUN': 0,
  'MON': 1,
  'TUE': 2,
  'WED': 3,
  'THU': 4,
  'FRI': 5,
  'SAT': 6
}
 
print(7 - dict[S])

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

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

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    days = {'SUN':0,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    S = input()
    print(days[S])
    return 0
    
if __name__ == '__main__':
    main()

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
def main():
    days = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    S = input()
    print(days[S])
    return 0
    
if __name__ == '__main__':
    main()
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
id = list.index(s)
print(list[id + 1])

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
s = input()
list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
id = list.index(s)
print(7 - id)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)


Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
str=input()
if(str=='SAT'):
	print('1')
elif(str=='SUN'):
	print('0')
elif(str=='MON'):
	print('6')
elif(str=='TUE'):
	print('5')
elif(str=='WED'):
	print('4')
elif(str=='THU'):
	print('3')
else:
	print('2')

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
str=input()
if(str=='SAT'):
	print('1')
elif(str=='SUN'):
	print('7')
elif(str=='MON'):
	print('6')
elif(str=='TUE'):
	print('5')
elif(str=='WED'):
	print('4')
elif(str=='THU'):
	print('3')
else:
	print('2')

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
dict1={7:'SUN',6:'MON',5:'TUE',4:'WED',3:'THU',2:'FRI',1:'SAT'}
keys = [k for k, v in dict1.items() if v == s]
print(keys)

Failing test case input:
SAT

Expected output:
1

Actual output:
[1]


Fixed submission (verdict: Accepted):
s=input()
dict1={7:'SUN',6:'MON',5:'TUE',4:'WED',3:'THU',2:'FRI',1:'SAT'}
keys = [k for k, v in dict1.items() if v == s]
print(keys[0])
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(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)

Failing test case input:
SAT

Expected output:
1

Actual output:
曜日を入力：1


Fixed submission (verdict: Accepted):
s = str(input())
  
if 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')

else:
  print('7')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
w_dict = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(w_dict[S]%7)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
S=input()
w_dict = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7 - w_dict[S])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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


Failing test case input:
SUN

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
S = input()

if 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)
else:
    print(7)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()
if 'M' in S:
    print(6)
elif 'N':
    print(7) 
elif 'H' in S:
    print(3)
elif 'U' in S:
    print(5)
elif 'W' in S:
    print(4)
elif 'F' in S:
    print(2)
elif 'A' in S:
    print(1)
    

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
S = input()
if 'M' in S:
    print(6)
elif 'N' in S:
    print(7) 
elif 'H' in S:
    print(3)
elif 'U' in S:
    print(5)
elif 'W' in S:
    print(4)
elif 'F' in S:
    print(2)
elif 'A' in S:
    print(1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S_list = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
S = input()
print(S_list)
for i, s in enumerate(S_list):
    if S == s:
        print(7-i)

Failing test case input:
SAT

Expected output:
1

Actual output:
['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
1


Fixed submission (verdict: Accepted):
S_list = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
S = input()
for i, s in enumerate(S_list):
    if S == s:
        print(7-i)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
SUN

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
D = {"SUN": "MON", "MON": "TUE", "TUE": "WED",
     "WED": "THU", "THU": "FRI", "FRI": "SAT", "SAT": "SUN"}
S = input()
print(D[S])


Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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)



Failing test case input:
SAT

Expected output:
1

Actual output:
>1


Fixed submission (verdict: Accepted):

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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
D = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(D[(D.index(S)+1)%7])

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
S = input()
D = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7 - D.index(S))

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

print(day[(day.index(input())+1)%7])


Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

print((-day.index(input())-1)%7+1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
d = input()
ns = {'SAT': 1, 'FRI': 2, 'THU': 3, 'WED': 4, 'TUE': 5, 'MON': 6, 'SUN': 7}
ns[d]

Failing test case input:
SAT

Expected output:
1

Actual output:

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

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

print(6-t.index(s))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s=input()
 
t=["MON","TUE","WED","THU","FRI","SAT","SUN"]
 
print(6-t.index(s) if s!="SUN" else 7)
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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('入力エラー')

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
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('入力エラー')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

s = input()

print(x.index('SUN') - x.index(s))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
x = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

s = input()

if s == 'SUN':
    print(7)
else:
    print(x.index('SUN') - x.index(s))

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
week=["SUN", "SAT", "FRI", "THU", "WED", "TUE", "MON"]
print(week.index(input()))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
week=["NONE", "SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"]
print(week.index(input()))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
list=["SUN","SAT","FRI","THU","WED","TUE","MON"] 
print(list.index(S))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S=input()
list=[0,"SAT","FRI","THU","WED","TUE","MON","SUN"] 
print(list.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
days={"SUN":0,"SAT":1,"FRI":2,"THU":3,"WED":4,"TUE":5,"MON":6}
print(days[s])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lis =['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
if s == 'SUN':
  print(7)
else:
  print(lis.index(s))

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
lis = ["SUN","SAT","FRI","THU","WED","TUE","MON"]
s = input()
if s == "SUN":
  print(7)
else:
  print(lis.index(s))
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


S = input()

if S == 'SUN':
    print(7)
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)
else:
    print(6)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
l = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
for i in l:
    if i == s:
        print(l.index(i) + 1)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
s = input()
l = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
for i in l:
    if i == s:
        print(l.index(i) + 1)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
base = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

if not ( S in base ): sys.exit()

print(7 - base.index(S)) if S != 'SUN' else print(0)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
import sys
base = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

if not ( S in base ): sys.exit()

print(7 - base.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ds = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
d = input()
print(ds.index(d)+1)


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
ds = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
d = input()
print(ds.index(d)+1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
l = ['test','MON','TUE','WED','THU','FRI','SAT','SUN']
print(l.index(s))

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
s = input()
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-l.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
 
day = sys.stdin.read().strip()
 
days = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
day_index = days.index(day)
 
print(6 - day_index)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
import sys

day = sys.stdin.read().strip()

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

day_index = days.index(day)

print(7-day_index)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
H = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
k = S.index(S)
print(7-k)

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
S = input()
H = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
k = H.index(S)
print(7-k)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


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


Failing test case input:
SAT

Expected output:
1

Actual output:
SAT


Fixed submission (verdict: Accepted):


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=["MON","TUE","WED","THU","FRI","SAT","SUN"]
S=input()
print(6-l.index(S))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
l=["MON","TUE","WED","THU","FRI","SAT","SUN"]
S=input()
if S=="SUN":
  print(7)
else:
  print(6-l.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
yobis = {"MON": 1, "TUE": 2, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6, "SUN": 7}
S = input()
print(yobis["SUN"] - yobis[S])


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
yobis = {"MON": 1, "TUE": 2, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6, "SUN": 7}
S = input()
print(7 if yobis["SUN"] - yobis[S] == 0 else yobis["SUN"] - yobis[S])

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):

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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

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

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)


Failing test case input:
SAT

Expected output:
1

Actual output:
0


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
n = [1, 2, 3, 4, 5, 6, 7]
S = input()
i = s.index(S)
print(n[i])


Failing test case input:
SUN

Expected output:
7

Actual output:
1


Fixed submission (verdict: Accepted):
s = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
n = [7, 6, 5, 4, 3, 2, 1]
S = input()
i = s.index(S)
print(n[i])
Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
if s == "SUN":
  print(7)
if s == "SAT":
  print(6)
if s == "FRI":
  print(5)
if s == "THU":
  print(4)
if s == "WED":
  print(3)
if s == "TUE":
  print(2)
if s == "MON":
  print(1)


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = str(input())
day = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

if len(day) - day.index(i) == 0:
    print(7)
else:
    print(len(day) - day.index(i) - 1)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
i = str(input())
day = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

if i == 'SUN':
    print(7)
else:
    print(len(day) - day.index(i) - 1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day = input()

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

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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")
else:
    print("1")

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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

idx = weekdays.index(s)

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

print(weekdays[ans])


Failing test case input:
SUN

Expected output:
7

Actual output:
MON


Fixed submission (verdict: Accepted):
s = input()

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

idx = weekdays.index(s)

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

print(ans)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S == 'SUN':
  print(0)
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)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
today = input()

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

print(ans)

Failing test case input:
SUN

Expected output:
7

Actual output:
SUN
7


Fixed submission (verdict: Accepted):
today = input()

if today == 'SUN' :
	ans = 7
if today == 'MON' :
	ans = 6
if today == 'TUE' :
	ans = 5
if today == 'WED' :
	ans = 4
if today == 'THU':
	ans = 3
if today == 'FRI' :
	ans = 2
if today == 'SAT' :
	ans = 1

print(ans)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
week = {'FRI': 1,'THU': 2,'WED': 3,'TUE':4,'MON':5,'SAT':6,'SUN':7}
print(week[s])

Failing test case input:
SAT

Expected output:
1

Actual output:
6


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
arg1 = input().strip()

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


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
arg1 = input().strip()

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


answer = input ()

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

Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):


answer = input ()

if answer == "SUN":
    print("7")
elif answer == "MON":
    print("6")
elif answer == "TUE":
    print("5")
elif answer == "WED":
    print("4")
elif answer == "THU":
    print("3")
elif answer == "FRI":
    print("2")
elif answer == "SAT":
    print("1")
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = ['SAT', 'FRI', 'TUE', 'WED', 'THU', 'MON', 'SAN']
s = input()
for num, i in enumerate(w):
  if i == s:
    print(num+1)

Failing test case input:
SUN

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
w = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
s = input()
for num, i in enumerate(w):
  if i == s:
    print(num+1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n == 'SUM':
  print('7')
elif n == 'MUN':
  print('6')
elif n == 'TUE':
  print('5')
elif n == 'WED':
  print('4')
elif n == 'THU':
  print('3')
elif n == 'FRI':
  print('2')
elif n == 'SAT':
  print('1')


Failing test case input:
SUN

Expected output:
7

Actual output:

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

if S != 'SUN':
  print(7-youbi.index(S))
else:
  print(0)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

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

print(7-youbi.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
week = ['SUN', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON']
print(week.index(s))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
week = ['', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
print(week.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
S_dic={"SUN":7,"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6}
print(7-S_dic[S])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S=input()
S_dic={"SUN":0,"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6}
print(7-S_dic[S])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
days=['SUN','MON','TUE','WED','THU','FRI','SAT']
s=input()
for i in range(len(days)):
  if s==days[i]:
    print(days[i-6])

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
days=['SUN','MON','TUE','WED','THU','FRI','SAT']
s=input()
for i in range(len(days)):
  if s==days[i]:
    print(7-i)
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


S = input()

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


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

print(nextSunday[S])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

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

print(nextSunday[S])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
for i in range(len(list)):
    if S == list[i] :
        print("{}".format((7 - i) % 7))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
for i in range(len(list)):
    if S == list[i] :
        print("{}".format(7 - i))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
w = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
print(7-w[s])

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
s = input()
w = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7-w[s])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())

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

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
s = str(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)
else:
    print(6)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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:
  print(6)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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)
Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def cant_wait (): 
    dzien = input()
    dni_tygodnia = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    for i in range(len(dni_tygodnia)): 
        if dni_tygodnia[i]== dzien: 
            return len(dni_tygodnia) - i
        
cant_wait()

Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
def cant_wait (): 
    dzien = input()
    dni_tygodnia = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    for i in range(len(dni_tygodnia)): 
        if dni_tygodnia[i]== dzien: 
            print (len(dni_tygodnia) - i)
        
cant_wait()

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = str(input())

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

print(L.index(S))

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
S = str(input())

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

print(L.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):









mod = 10**9 + 7



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


Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):









mod = 10**9 + 7



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

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
week = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
week.reverse()
print(week.index(input()))


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
week.reverse()
print(week.index(input())+1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s=='SUN':
    print(7)
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)
else:
    print(6)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input('曜日を入力してね！ ')

if S == 'SUN':
    result = 7

elif S == 'MON':
    result = 6

elif S == 'TUE':
    result = 5

elif S == 'WED':
    result = 4

elif S == 'THU':
    result = 3

elif S == 'FRI':
    result = 2

elif S == 'SAT':
    result = 1

print(result)

Failing test case input:
SAT

Expected output:
1

Actual output:
曜日を入力してね！ 1


Fixed submission (verdict: Accepted):
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')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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(0)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = str(input())
ans = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(7):
    if S == 'SUN':
        print(0)
    elif S == ans[i]:
        print(7-i)

Failing test case input:
SUN

Expected output:
7

Actual output:
0
0
0
0
0
0
0


Fixed submission (verdict: Accepted):
S = str(input())
ans = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(7):
    if S == ans[i]:
        print(7-i)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

print(DAYS_TO_NUM['SUN'] - DAYS_TO_NUM[S])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

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

print(7 - DAYS_TO_NUM[S])
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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

Failing test case input:
SUN

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
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")

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
s = input()

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

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
s = input()

for i in range(7):
	if s==week[i]:
		print(7-i)
		break

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if("SUN"):
    print(7)
elif("MON"):
    print(6)
elif("TUE"):
    print(5)
elif("WED"):
    print(4)
elif("THU"):
    print(3)
elif("FRI"):
    print(2)
elif("SAT"):
    print(1)

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(6-n.index(a))
else:
  print(7)

Failing test case input:
SUN

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(7-n.index(a))
else:
  print(1)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
l = ['MON','TUE','WED','THU','FRI','SAT','SUN']
s = input()

print(6 - l.index(s))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
 
print(7 - l.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = ['MON','TUE','WED','THU','FRI','SAT','SUN']

S = input() 

print( 6 - int(a.index(S)))

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']

S = input() 

print( 7 - int(a.index(S)))
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
SAT

Expected output:
1

Actual output:
S1


Fixed submission (verdict: Accepted):
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')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S == 'SUN':
  print("0")
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")


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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")

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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')

Failing test case input:
SUN

Expected output:
7

Actual output:
曜日を入力してね！ 7


Fixed submission (verdict: Accepted):
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')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
weekdays = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

for idx, day in enumerate(weekdays):
    if day == S:
        print((7 - idx) % 7)
        break


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
weekdays = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

for idx, day in enumerate(weekdays):
    if day == S:
        print(7 - idx)
        break

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
days = ["SUN", 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
d = input()
print(days.index(d)+1)


Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
days = ["SUN", 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days.reverse()
d = input()
print(days.index(d)+1)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
days=['','MON','TUE','WED','THU','FRI','SAT','SUN']
s=input()
for i in range(len(days)):
  if s==days[i]:
    print(i)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
days=['SUN','MON','TUE','WED','THU','FRI','SAT']
s=input()
for i in range(len(days)):
  if s==days[i]:
    print(7-i)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

day =["SUN","MON","TUE","WED","THU","FRI","SAT" ]
counter = 0

for i in day:
  if i == S:
    print(counter)
  counter = counter + 1
    

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

day =["SUN","MON","TUE","WED","THU","FRI","SAT" ]
counter = 7

for i in day:
  if i == S:
    print(counter)
  counter = counter - 1

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i, d in enumerate(day):
    if s == d:
        print(7-i)

Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i, d in enumerate(day):
    if s == d:
        print(int(7-i))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
week = ['SUN','MON','TUE','WED','THU','FRI','SAT','SUN']
print(week[week.index(input())+1])


Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
week = ['SUN','MON','TUE','WED','THU','FRI','SAT','SUN']
print(7-week.index(input()))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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

n = days_of_the_week.index(s)

if (n == 6):
  print(days_of_the_week[0])
else:
  print(days_of_the_week[n + 1])

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
s = input()

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

n = days_of_the_week.index(s)

print(7 - days_of_the_week.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y=input()



 
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)


Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
y=input()



 
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)