ZhenlongDai/ACPR huggingface dataset:
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()

if a=="ABC":
    print("ABC")
if a=="ARC":
    print("ARC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
a=input()
if a=="ARC":
    print("ABC")
if a=="ABC":
    print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input("S : ")

if s == "ABC":
    print('ARC')
elif s == "ARC":
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
S : ARC


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

if s == "ABC":
    print('ARC')
elif s == "ARC":
    print('ABC')

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()
print('ABC' if s == 'ARC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
print('ABC' if s == 'ARC' else 'ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=int()
a='ABC'
if S==a:
  print('ARC')
else:
  print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
if S==('ABC'):
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input().split()

if s == "ABC":
    print("ARC")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if s == "ABC":
    print("ARC")
else:
    print("ABC")

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

if S is'ABC':
  print('ARC')
else:
  print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if s=='ABC':
    print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[1] == 'R':
    print('ARC')
elif s[1] == 'B':
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s[1] == 'R':
    print('ABC')
elif s[1] == 'B':
    print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = "ABC","ARC"
if S == "ABC" : 
  print("ARC")
if S == "ARC" :
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S == "ABC" : 
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = "ARC" or "ABC"
if S == "ABC" :
  print("ARC")
else :
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC" : 
  print("ARC")
else :
  print("ABC")
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('ABC') if input() == 'AGC' else print('AGC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
AGC


Fixed submission (verdict: Accepted):
print('ABC') if input() == 'ARC' else print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=str(input())
if n=="ABS":
    print("ARC")
else:
    print("ABC")


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
n=str(input())
if n=="ABC":
    print("ARC")
else:
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def A(S):
    if S == 'ARC':
        out = 'ABC'
    else:
        out = 'ARC'
    return out
A('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
def A():
    s = input()
    if s == 'ARC':
        print('ABC')
    else:
        print('ARC')
A()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = input()
def f(x):
    if x == "ABC":
        print("ARC")
    elif x == "ARC":
        print("ABC")
    else:
        print("ivalid input")

print(f(x))

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARC
None


Fixed submission (verdict: Accepted):
x = input()
def f(x):
    if x == "ABC":
        print("ARC")
    elif x == "ARC":
        print("ABC")
    else:
        print("invalid input")
f(x)

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s == 'abc':
  print('arc')
else:
  print('abc')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
abc


Fixed submission (verdict: Accepted):
s=input()
if s == 'ABC':
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    import sys
    input = sys.stdin.readline

    S = input()
    if S == "ABC":
        print("ARC")
    else:
        print("ABC")


if __name__ == "__main__":
    main()


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
def main():
    
    

    S = input()
    if S == "ABC":
        print("ARC")
    else:
        print("ABC")


if __name__ == "__main__":
    main()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input("ABC" or "ARC")
if S == "ABC" : 
  print("ARC")
if S == "ARC" :
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABCARC


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC" : 
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin

K = str(stdin.readline())

if K=="ABC":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
from sys import stdin

K = str(stdin.readline().strip())

if K=="ABC":
  print("ARC")
else:
  print("ABC")
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = {input()}
test = {'ABC', 'ARC'}
print(test - s)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
{'ARC'}


Fixed submission (verdict: Accepted):
s = {input()}
test = {'ABC', 'ARC'}
print(list(test - s)[0])

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input().split()

if S == "ABC":
    print("ARC")
if S == "ARC":
    print("ARC")


Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
s = input()
if s[1] == "B":
    print("ARC")
else:
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
if a==a:
    print("ABC")
elif a==a:
    print("ARC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
a=input()
if a=="ARC":
    print("ABC")
if a=="ABC":
    print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('ABC' if input() == 'ARS' else 'ARS')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARS


Fixed submission (verdict: Accepted):
print('ABC' if input() == 'ARC' else 'ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A = input().split()
if A == 'ABC':
    print('ARC')
elif A == 'ARC':
    print('ABC')
    

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
A = input().split()

if A[0][1] == 'B':
    print('ARC')
elif A[0][1] == 'R':
    print('ABC')

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = input()
if S == 'SBC':
  print('SRC')
else:
  print('SBC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
SBC


Fixed submission (verdict: Accepted):
S = input()
if S == 'ABC':
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s == 'ABC':
	print('ARS')
else:
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARS


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

if s == 'ABC':
	print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
print('ARC') if S=='ARC' else print('ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
print('ARC') if S=='ABC' else print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = ('ABC')
    if s == a:
        print('ARC')
    else:
      print('ABC')
    

if __name__ == '__main__':
    solve()


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = list('ABC')
    if s == a:
        print('ARC')
        exit()
    else:
      print('ABC')
    

if __name__ == '__main__':
    solve()
Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()
if s is "ABC":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s == "ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

hoge = str(input())

if hoge == 'ARC':
  print('ABC')
elif hoge == 'ABC':
  print('ARC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
import sys

import math
input = sys.stdin.readline

hoge = str(input().strip())
if hoge == "ABC":
   print("ARC".strip())
if hoge == "ARC":
       print("ABC".strip())

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input().split()

if S == "ABC":
    print("ARC")
else:
    print("ABC")


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s[1] == "B":
    print("ARC")
else:
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s == "arc":
 print("abc")
else :
 print("arc")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
arc


Fixed submission (verdict: Accepted):
s = input()
if s == "ARC":
 print("ABC")
else :
 print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=str(int())
a='ABC'
if S==a:
  print('ARC')
else:
  print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
if S==('ABC'):
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
def contest(N):
  if N=="ABC":
    return "ARC"
  else:
    return "ABC"
contest(N)



Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
N=input()
def contest(N):
  if N=="ABC":
    return "ARC"
  else:
    return "ABC"
print(contest(N))

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


s = input()

if s == "ARC" :
	print("ABC")
else:
	print(s)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):


s = input()

if s == 'ARC' :
	print('ABC')
else:
	print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
output = "ABC"
if s == output:
  output = "ARC"
print(s)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
output = "ABC"
if s == output:
  output = "ARC"
print(output)

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S=='ABC':
    print('ACR')
else:
    print('ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ACR


Fixed submission (verdict: Accepted):
S = input()
if S=='ABC':
    print('ARC')
else:
    print('ABC')
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
print('ABC' if s == 'ARC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
print('ABC' if s == 'ARC' else 'ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input().split())
if S == "ABC":
  print("ARC")
elif S == "ARC":
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S == "ABC":
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input('先週: ')

if S == 'ABC':
  print('ARC')
elif S == 'ARC':
  print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
先週: ARC


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

if S == 'ABC':
  print('ARC')
elif S == 'ARC':
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys


def input():
    return sys.stdin.readline().strip()


sys.setrecursionlimit(20000000)


def main():
    S = input()
    if S == "ARC":
        print("ABC")
    else:
        print("ABC")


if __name__ == "__main__":
    main()


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import sys


def input():
    return sys.stdin.readline().strip()


sys.setrecursionlimit(20000000)


def main():
    S = input()
    if S == "ARC":
        print("ABC")
    else:
        print("ARC")


if __name__ == "__main__":
    main()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def awc(s):
    print("ARC" if s == "ABC" else "ABC")

if __name__ == "__main__":
    import sys
    in_str = []
    for line in sys.stdin:
        in_str.append(line)
    awc(in_str[0])


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
def awc(s):
    print("ARC" if s == "ABC" else "ABC")

if __name__ == "__main__":
    import sys
    in_str = input()
    awc(in_str)

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s is "ABC":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s == "ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s == 'ABC':
    print('ABC')
if s == 'ARC':
    print('ARC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if s == 'ABC':
    print('ARC')
if s == 'ARC':
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = 'ABC' or 'ARC'
print(S)

if (S == 'ABC'):
    print('ARC')
else:
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC
ARC


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

if (S == 'ABC'):
    print('ARC')
else:
    print('ABC')
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

S = input()
print('ABC') if S == 'ARC' else print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):

S = input()
print('ABC') if S == 'ARC' else print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[1] == "R":
    print("ABC")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s[1] == "R":
    print("ABC")
else:
    print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
string = input()
if string == "ARC":
  print("ABC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
string = input()
if string == "ARC":
  print("ABC")
else:
  print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S is 'ABC':
    print('ARC')
else:
    print('ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S = input()
if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def nextweek(S):
  if( S == "ABC"):
    return "ARC"
  else:
    return "ABC"



S = input()
nextweek(S)

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
def nextweek(S):
  if( S == "ABC"):
    return "ARC"
  else:
    return "ABC"



S = input()
print (nextweek(S))

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = ('ABC')
    if s == a:
        print('ARC')
        exit()
    else:
      print('ABC')
    

if __name__ == '__main__':
    solve()


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = list('ABC')
    if s == a:
        print('ARC')
        exit()
    else:
      print('ABC')
    

if __name__ == '__main__':
    solve()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = input()
if k == 'ARC':
  print('ABC')
else:
  print(k)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
k = input()
if k == 'ARC':
  print('ABC')
elif k == 'ABC':
  print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

ans = "ABC"
if s == "ABC":
    print("ARC")

print(ans)


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARC
ABC


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

ans = "ABC"
if s == "ABC":
    ans = "ARC"

print(ans)
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = ["ABC","ARC"]
print(a[input() == "ARC"])

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
a = ["ABC","ARC"]
print(a[input() == "ABC"])

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
from sys import stdin,stdout

T = stdin.readline()
if T=="ABC":
    print("ARC")
else:
    print("ABC")    

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import math
from sys import stdin,stdout

T = stdin.readline()
T=T[:-1]
if T=="ABC":
    print("ARC")
elif T=="ARC":
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
from sys import stdin,stdout

T = stdin.readline()
if T=="ABC":
    print("ARC")
elif T=="ARC":
    print("ABC")    

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
import math
from sys import stdin,stdout

T = stdin.readline()
T=T[:-1]
if T=="ABC":
    print("ARC")
elif T=="ARC":
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s == "ABC":
    print("SRC")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
SRC


Fixed submission (verdict: Accepted):
s = input()
if s == "ABC":
    print("ARC")
else:
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()

if s == "ABC":
  print(s)
else:
  print("ARC")


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s=input()
 
if s == "ARC":
  print("ABC")
else:
  print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=input()
print('ABC' if x == 'ARC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
x=input()
print('ABC' if x == 'ARC' else 'ARC')

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

S=input().split()
if S=="ABC":
    print("ARC")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
if S=="ABC":
    print("ARC")
else:
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
print("ABC" if s=="ARC" else "ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
print("ABC" if s=="ARC" else "ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=input()
print('ABC' if x == 'ABC' else 'ARC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
x=input()
print('ABC' if x == 'ARC' else 'ARC')
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


from sys import stdin


def main():
    S = stdin.readline()
    if S == 'ABC':
        print('ARC')
    elif S == 'ARC':
        print('ABC')


if __name__ == "__main__":
    main()


Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):

def main():
    S = input()
    if S == 'ABC':
        print('ARC')
    else:
        print('ABC')


if __name__ == "__main__":
    main()

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

if S[1] == 'R':
    print('ARC')
else:
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if S[1] == 'R':
    print('ABC')
else:
    print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
n = sys.stdin.readline()
if n == 'ABC':
  print('ARC')
else:
  print('ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import sys
n = sys.stdin.readline().strip()
if n == 'ABC':
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S == "ABC":
  print("AGC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
AGC


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a="ABC"
b="ARC"
if a==a:
    print("ABC")
if b==b:
    print("ARC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC
ARC


Fixed submission (verdict: Accepted):
a=input()
if a=="ARC":
    print("ABC")
if a=="ABC":
    print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()[2]
if S=="B":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S = input()[1]
if S=="B":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input().rstrip()

if s[2]=='B':
    s='ARC'


print(s)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if s[1]=='B':
    print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input()
if s=="ARC":
    print("ABC")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s=input()
if s=="ARC":
    print("ABC")
else:
    print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input("ABC")
if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABCARC


Fixed submission (verdict: Accepted):
S = input()
if S == 'ABC':
    print('ARC')
else:
    print('ABC')
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
print(S if S!="ABC" else "ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
print("ARC" if S=="ABC" else "ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S =input()
if S[1] =='B':
    print('R')
else:
    print('B')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
R


Fixed submission (verdict: Accepted):
S =input()
if S[1] =='B':
    print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
print("ABC" if s == "ARC" else "ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
print("ABC" if s == "ARC" else "ARC")

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

print('ABC' if S=='ARC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

print('ABC' if S=='ARC' else 'ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=int()
if S=='ABC':
  print('ARC')
else:
  print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
if S==('ABC'):
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s == "ABC":
  print("ADC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ADC


Fixed submission (verdict: Accepted):
s = input()
if s == 'ABC':
    print('ARC')
else:
    print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if (S == 'ABC'):
  print('ARC')
print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARC
ABC


Fixed submission (verdict: Accepted):
S = input()
if(S == 'ABC'):
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('ABC' if input() == 'ARC' else 'ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
result = 'ARC' if input() == 'ABC' else 'ABC'
print(result)

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s=='ABC':
  print('ABC')
else:
  print('ARC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
if s=='ABC':
  print('ARC')
else:
  print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input(str)
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
<class 'str'>ARC


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC":
  print("ARC")
else:
  print("ABC")
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = str(input())
if a=="ABC":
    print("AGC")
elif a=="AGC":
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
AGC


Fixed submission (verdict: Accepted):
a = str(input())
if a=="ABC":
    print("ARC")
elif a=="ARC":
    print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s=="ABC":
 print("ABC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s=input()
if s=="ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = "ABC"
if S == "ABC" : 
  print("ARC")
S = "ARC"
if S == "ARC" :
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ARC
ABC


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC" : 
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()

ans='ABC'

if s!=ans:
  ans='ARC'
  
print(ans)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if s=='ABC':
  ans='ARC'
else:
  ans='ABC'

print(ans)

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("ABC"if input()=="ABC"else"ARC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
print("ABC"if input()=="ARC"else"ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
print("ABC" if S!="ABC" else S)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S=input()
print("ARC" if S=="ABC" else "ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S == 'ABC':
    print("ACR")
else:
    print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ACR


Fixed submission (verdict: Accepted):
S = input()
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if __name__ == '__main__':
	S = input()
	if S =='ABC':
		print('SRC')
	else:
		print('ABC')
	

Failing test case input:
ABC

Expected output:
ARC

Actual output:
SRC


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
	S = input()
	if S =='ABC':
		print('ARC')
	else:
		print('ABC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input("先週のコンテスト名を入力")

if S == "ABC":
  print("ARC")
  
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
先週のコンテスト名を入力ARC


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

if S == "ABC":
  print("ARC")
  
else:
  print("ABC")
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def A():
    S = input()
    if S == 'ARC':
        out = 'ABC'
    else:
        out = 'ARC'
    return out
A()

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
def A():
    s = input()
    if s == 'ARC':
        print('ABC')
    else:
        print('ARC')
A()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = str(input())
if s == "ARC":
  print("ABC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = str(input())
if s == "ARC":
  print("ABC")
else:
  print("ARC")

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
if "ARC":
  print("ABC")
else:
  print("ARC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
n= input()
if n=="ARC":
  print("ABC")
else:
  print("ARC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input().split()
if s == "ABC":
  print("ARC")
elif s == "ARC":
  print("ABC")
 

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S == "ABC":
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input()
if s == 'ARC':
  print('ABC')
else:
  print('ABC')
    

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s=input()
if s == 'ARC':
  print('ABC')
else:
  print('ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
ans = "ABC" if s == "ARC" else s
print(ans)

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
s = input()
ans = "ABC" if s == "ARC" else "ARC"
print(ans)

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

if S is "ABC":
  print("ARC")
else:
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if S == "ABC":
  print("ARC")
else:
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

lines = sys.stdin.readline()

X = str(lines)

if X =='ABC':
    print('ARC')
else:
    print('ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

X = str(lines)

if X =='ABC':
    print('ARC')
else:
    print('ABC')
Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = 'ABC'
    if s != a:
        print('ABC')
        exit()
    else:
      print('ARC')
    

if __name__ == '__main__':
    solve()


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s = list(input())
    a = list('ABC')
    if s == a:
        print('ARC')
        exit()
    else:
      print('ABC')
    

if __name__ == '__main__':
    solve()

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = ["ABC","ARC"]
if S == "ABC" : 
  print("ARC")
if S == "ARC" :
  print("ABC")

Failing test case input:
ABC

Expected output:
ARC

Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S == "ABC" : 
  print("ARC")
else :
  print("ABC")

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
print('ARC' if S is 'ABC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
S = input()
print('ARC' if S == 'ABC' else 'ABC')

Problem: p02687
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input()
print('ABC' if N == 'ARC' else 'ABC')

Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


Fixed submission (verdict: Accepted):
N = input()
print('ABC' if N == 'ARC' else 'ARC')

Problem: p02687
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()

if(n == 'ARC'):
  print('ABC')
else:
  print('ABC')


Failing test case input:
ABC

Expected output:
ARC

Actual output:
ABC


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

if(n == 'ARC'):
  print('ABC')
elif(n == 'ABC'):
  print('ARC')
Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
out = []
for i in range(1, 5+1):
    print(i)
    if i not in A:
        out.append(0)
    else:
        out.append(A.count(i))
for a in out:
  print(a)

Failing test case input:
7
1 2 2 1 1 4

Expected output:
3
2
0
1
0
0
0


Actual output:
1
2
3
4
5
3
2
0
1
0


Fixed submission (verdict: Accepted):
import collections

N = int(input())
A = list(map(int,input().split()))

c = collections.Counter(A)

for i in range(1, N+1):
    if i not in c:
        print(0)
    else:
        print(c[i])

Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import collections
from collections import Counter
n=int(input())
d=collections.deque()
l=list(map(int,input().split()))
d.extend(l)
d.appendleft(0)
c=dict(Counter(d))
s=set(d)
for x in d:
    if x+1 in s:
        print(c[x+1])
        s.remove(x+1)
    else:print(0)



Failing test case input:
7
1 2 1 4 1 6

Expected output:
3
1
0
1
0
1
0


Actual output:
3
1
0
0
0
0
0


Fixed submission (verdict: Accepted):
import collections
from collections import Counter
n=int(input())
d=collections.deque()
l=list(map(int,input().split()))
d.extend(l)
d.appendleft(0)
c=dict(Counter(d))
s=set(d)
for x in range(1,len(d)+1):
    if x in s:
        print(c[x])
    else:
        print(0)

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
A=[int(i) for i in input().split()]
lis=[0 for i in range(N)]
for i in A:
    lis[i-1]+=1
print(lis)

Failing test case input:
7
1 2 2 1 1 4

Expected output:
3
2
0
1
0
0
0


Actual output:
[3, 2, 0, 1, 0, 0, 0]


Fixed submission (verdict: Accepted):
N=int(input())
A=[int(i) for i in input().split()]
lis=[0 for i in range(N)]
for i in A:
    lis[i-1]+=1
for t in lis:
    print(t)

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
employeeCount = int(input())
DirectBosses = list(map(int, input().split()))

for em in range(employeeCount):
    directJuniorCount = 0

    
    for bo in DirectBosses:
        if em == bo :
            directJuniorCount += 1

    print(directJuniorCount)

Failing test case input:
7
1 3 1 4 2 7

Expected output:
2
1
1
1
0
0
1


Actual output:
0
2
1
1
1
0
0


Fixed submission (verdict: Accepted):
employeeCount = int(input())
directBosses = list(map(int, input().split()))
directJuniorCounts = [0] * employeeCount

for boss in directBosses:
    directJuniorCounts[boss - 1] += 1

for jc in directJuniorCounts:
    print(jc)
Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


member = int(input())
mem_number = [int(i) for i in input().split()]

ans = []

for i in range(member):
  ans.append(0)

print(ans)

for j in range(1,member):
  k = mem_number.count(j)
  ans[j-1] = k

for i in  range(member):
  print(ans[i])



Failing test case input:
7
1 2 3 3 5 4

Expected output:
1
1
2
1
1
0
0


Actual output:
[0, 0, 0, 0, 0, 0, 0]
1
1
2
1
1
0
0


Fixed submission (verdict: Accepted):

from collections import Counter

member = int(input())
mem_number = [int(i) for i in input().split()]

ans = []

ans = [0] * member

mycounter = Counter(mem_number)

for i in range(member):
  ans[i] = mycounter[i+1]
  print(ans[i])

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
w=list(map(int,input().split()))
a=[0]*(n)

for i in range(n-1):
    a[w[i]-1]+=1

for j in range(n):
    print(a)

Failing test case input:
7
1 3 2 1 2 3

Expected output:
2
2
2
0
0
0
0


Actual output:
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]
[2, 2, 2, 0, 0, 0, 0]


Fixed submission (verdict: Accepted):
n=int(input())
w=list(map(int,input().split()))
a=[0]*(n)

for i in range(n-1):
    a[w[i]-1]+=1

for j in range(n):
    print(a[j])

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
A=list(map(int, input().split()))
s=0
for num in range(1, N+1):
  count = 0
  for i in range(s, N-1):
    if A[i] == num:
      count += 1
    else:
      break
  s+=count
  print(count)

Failing test case input:
7
1 3 2 1 2 3

Expected output:
2
2
2
0
0
0
0


Actual output:
1
0
1
0
0
0
0


Fixed submission (verdict: Accepted):
N=int(input())
A=list(map(int, input().split()))
A=sorted(A)
s=0
for num in range(1, N+1):
  count = 0
  for i in range(s, N-1):
    if A[i] == num:
      count += 1
    else:
      break
  s+=count
  print(count)

Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
A = [int(i) for i in input().split()]
ans = [0]*N

for a in A:
    ans[a-1] += 1

print(*A, sep='\n')


Failing test case input:
7
2 1 2 5 2 7

Expected output:
1
3
0
0
1
0
1


Actual output:
2
1
2
5
2
7


Fixed submission (verdict: Accepted):
N = int(input())
A = [int(i) for i in input().split()]
ans = [0]*N

for a in A:
    ans[a-1] += 1

print(*ans, sep='\n')

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
values = list(map(int, input().split()))
values_dict = {}

for value in values:
    values_dict[value] = values_dict.get(value, 0) + 1

print(values_dict.get(i, 0) for i in range(1, N+1))



Failing test case input:
7
1 2 3 1 7 2

Expected output:
2
2
1
0
0
0
1


Actual output:
<generator object <genexpr> at 0x7f239d3dc740>


Fixed submission (verdict: Accepted):
N = int(input())
values = list(map(int, input().split()))
values_dict = {}

for value in values:
    values_dict[value] = values_dict.get(value, 0) + 1
for i in range(1, N+1):
    print(values_dict.get(i, 0))
Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

R = INT()
print(R*2*math.pi)

Failing test case input:
5
1 4 4 5

Expected output:
1
0
0
2
1


Actual output:
31.41592653589793


Fixed submission (verdict: Accepted):
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7


N = INT()
A = LIST()
c = Counter(A)

for i in range(N):
    print(c[i+1])

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections 

N = int(input())
A = list(map(int, input().split()))

c = collections.Counter(A)
c_s = sorted(c.items(), key=lambda x:x[0])

for i in range(N):
    if(i < len(c_s)):
        print(c_s[i][1])
    else:
        print(0)

Failing test case input:
7
2 1 2 1 2 7

Expected output:
2
3
0
0
0
0
1


Actual output:
2
3
1
0
0
0
0


Fixed submission (verdict: Accepted):
import collections 

N = int(input())
A = list(map(int, input().split()))
lst = set()
c = collections.Counter(A)
cnt = 0
for i in range(1, N+1):
    if(c[i] != 0):
        print(c[i])
    else:
        print(0)

Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):


N = int(input())
A = input().split()
for i in range(len(A)):
  A[i] = int(A[i])

buka = [0]*N
for i in range(len(A)):
  tmp = A[i]-1
  buka[tmp] += 1
print(buka)

Failing test case input:
7
1 1 2 4 5 5

Expected output:
2
1
0
1
2
0
0


Actual output:
[2, 1, 0, 1, 2, 0, 0]


Fixed submission (verdict: Accepted):


N = int(input())
A = input().split()
for i in range(len(A)):
  A[i] = int(A[i])

buka = [0]*N
for i in range(len(A)):
  tmp = A[i]-1
  buka[tmp] += 1
for i in range(len(buka)):
  print(buka[i])

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
T = {}
for i in A:
    if i not in T:
        T[i] = 0
    T[i] = T[i] + 1
T = T.values()
for i in T:
    print(i)

Failing test case input:
10
1 1 1 4 1 2 1 1 2

Expected output:
6
2
0
1
0
0
0
0
0
0


Actual output:
6
1
2


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
T = {}
for i in A:
    if i not in T:
        T[i] = 0
    T[i] = T[i] + 1
for i in range(1, N+1):
    print(T.get(i, 0))
Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

A = [int(x) for x in input().split()]
B = {}

for a in A:
    if a not in B:
        B[a] = 0
    B[a] += 1

for i in range(n):
    if i in B:
        print(B[i])
    else:
        print(0)


Failing test case input:
5
2 1 3 5

Expected output:
1
1
1
0
1


Actual output:
0
1
1
1
0


Fixed submission (verdict: Accepted):
n = int(input())

A = [int(x) for x in input().split()]
B = {}

for a in A:
    if a not in B:
        B[a] = 0
    B[a] += 1

for i in range(1, n + 1):
    if i in B:
        print(B[i])
    else:
        print(0)

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a1 = list(map(int, input().split())) 
a2 = [0] * n

for i in range(n) :
    print(i)
    for j in range(n-1) :
        if i+1 == a1[j] :
            a2[i] += 1
    print(a2[i])
    

Failing test case input:
7
1 3 3 5 5 6

Expected output:
1
0
2
0
2
1
0


Actual output:
0
1
1
0
2
2
3
0
4
2
5
1
6
0


Fixed submission (verdict: Accepted):
n = int(input())
a1 = list(map(int, input().split())) 
a2 = [0] * n

for i in range(n -1) :
    a2[a1[i]-1] += 1
for j in range(n) :
    print(a2[j])

Problem: p02707
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))

G = [0] * (N + 1)
for i, val in enumerate(A):
    G[val] += 1
print(G)

for i in range(1, N + 1):
    print(G[i])

Failing test case input:
7
1 3 2 4 2 6

Expected output:
1
2
1
1
0
1
0


Actual output:
[0, 1, 2, 1, 1, 0, 1, 0]
1
2
1
1
0
1
0


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))

G = [0] * (N + 1)
for i, val in enumerate(A):
    G[val] += 1

for i in range(1, N + 1):
    print(G[i])

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections

n = int(input())
mentors = input().split(" ")

a = collections.Counter(mentors)
print(a.keys())

for i in range(1, n+1):
    if str(i) in a.keys():
        print(a[str(i)])
    else:
        print(0)

Failing test case input:
7
2 2 2 5 5 6

Expected output:
0
3
0
0
2
1
0


Actual output:
dict_keys(['2', '5', '6'])
0
3
0
0
2
1
0


Fixed submission (verdict: Accepted):
import collections

n = int(input())
mentors = input().split(" ")

a = collections.Counter(mentors)

for i in range(1, n+1):
    if str(i) in a.keys():
        print(a[str(i)])
    else:
        print(0)

Problem: p02707
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input('')) 

A = list(map(int,input().split()))

A.insert(0,0)

A.insert(0,0)

subordinate = [0] * (N+1)





for index in range(N, 1, -1):
    subordinate[A[index]] = subordinate[A[index]] + 1


for index in range(1, N, 1):
    print(subordinate[index])



Failing test case input:
7
1 2 2 4 5 5

Expected output:
1
2
0
1
2
0
0


Actual output:
1
2
0
1
2
0


Fixed submission (verdict: Accepted):
N = int(input('')) 

A = list(map(int,input().split()))

A.insert(0,0)

A.insert(0,0)

subordinate = [0] * (N+1)





for index in range(N, 1, -1):
    subordinate[A[index]] = subordinate[A[index]] + 1


for index in range(1, N+1, 1):
    print(subordinate[index])