ZhenlongDai/ACPR huggingface dataset:
Problem: p02598
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from heapq import heappush, heappop
from math import ceil, floor
N, K = map(int, input().split())
A = [int(i) for i in input().split()]

ng, ok = 0, 10 ** 9
for _ in range(40) :
  mid = (ng + ok) / 2
  ret = 0
  for a in A :
    ret += floor(a / mid)
  if ret <= K :
    ok = mid
  else :
    ng = mid
  print(ok, ng)
    
print(ceil(ng))

Failing test case input:
10 6
29158842 409996172 603271755 24979445 861648772 983213769 232778827 484999442 262703497 185325218

Expected output:
409996172


Actual output:
500000000.0 0
500000000.0 250000000.0
500000000.0 375000000.0
437500000.0 375000000.0
437500000.0 406250000.0
421875000.0 406250000.0
414062500.0 406250000.0
410156250.0 406250000.0
410156250.0 408203125.0
410156250.0 409179687.5
410156250.0 409667968.75
410156250.0 409912109.375
410034179.6875 409912109.375
410034179.6875 409973144.53125
410003662.109375 409973144.53125
410003662.109375 409988403.3203125
410003662.109375 409996032.71484375
409999847.4121094 409996032.71484375
409997940.06347656 409996032.71484375
409996986.38916016 409996032.71484375
409996509.55200195 409996032.71484375
409996271.13342285 409996032.71484375
409996271.13342285 409996151.9241333
409996211.5287781 409996151.9241333
409996181.7264557 409996151.9241333
409996181.7264557 409996166.8252945
409996174.2758751 409996166.8252945
409996174.2758751 409996170.5505848
409996172.41322994 409996170.5505848
409996172.41322994 409996171.48190737
409996172.41322994 409996171.94756866
409996172.1803993 409996171.94756866
409996172.063984 409996171.94756866
409996172.0057763 409996171.94756866
409996172.0057763 409996171.9766725
409996172.0057763 409996171.9912244
409996172.0057763 409996171.99850035
409996172.0021383 409996171.99850035
409996172.00031936 409996171.99850035
409996172.00031936 409996171.99940985
409996172


Fixed submission (verdict: Accepted):
from heapq import heappush, heappop
from math import ceil, floor
N, K = map(int, input().split())
A = [int(i) for i in input().split()]

ng, ok = 0, 10 ** 9
for _ in range(50) :
  mid = (ng + ok) / 2
  ret = 0
  for a in A :
    ret += floor(a / mid)
  if ret <= K :
    ok = mid
  else :
    ng = mid
    
print(ceil(ng))
Problem: p02598
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math

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

def solve(x):    
    cnt = 0
    for a in A:
        cnt += math.ceil(a / x) - 1
    return cnt <= K

left = 0
right = 10 ** 9 + 1

for _ in range(40):
    mid = (left + right) / 2
    if solve(mid):
        right = mid
    else:
        left = mid

print(math.ceil(right))

Failing test case input:
10 5
262817187 877914575 603271755 24979445 414208107 623690081 433933447 48926430 198921849 211047202

Expected output:
414208107


Actual output:
414208108


Fixed submission (verdict: Accepted):
import math

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

def solve(x):    
    cnt = 0
    for a in A:
        cnt += math.ceil(a / x) - 1
    return cnt <= K

left = 0
right = 10 ** 9 + 1

for _ in range(100):
    mid = (left + right) / 2
    if solve(mid):
        right = mid
    else:
        left = mid

print(math.ceil(right))

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

n, k = map(int, input().split())
a = list(map(int, input().split()))

if k == 0:
    print(max(a))
    exit()

def check(x):
    res = 0
    for i in a:
        res += i 
    return res

l = 0
r = 10 ** 9 + 1
for _ in range(40):
    x = (l + r) / 2
    if check(x) > k:
        l = x
    else:
        r = x
print(math.ceil(l))


Failing test case input:
10 4
262817187 877914575 603271755 24979445 260862409 623690081 433933447 720908410 198921849 211047202

Expected output:
438957288


Actual output:
1000000001


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

n, k = map(int, input().split())
a = list(map(int, input().split()))

def check(x):
    res = 0
    for i in a:
        res += math.floor(i / x)
    return res

l = 0
r = 10 ** 9 + 1
for _ in range(100):
    x = (l + r) / 2
    if check(x) > k:
        l = x
    else:
        r = x
print(math.ceil(l))

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

n, k = map(int, input().split())
a = list(map(int, input().split()))

if k == 0:
    print(max(a))
    exit()

def check(x):
    res = 0
    for i in a:
        res += i 
    return res

l = 0
r = 10 ** 9 + 1
for _ in range(40):
    x = (l + r) / 2
    if check(x) >= k:
        l = x
    else:
        r = x
print(math.ceil(l))


Failing test case input:
10 10
300786358 1102436869 281023000 24979445 861648772 623690081 433933447 476190629 302875722 211047202

Expected output:
300786358


Actual output:
1000000001


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

n, k = map(int, input().split())
a = list(map(int, input().split()))

def check(x):
    res = 0
    for i in a:
        res += math.floor(i / x)
    return res

l = 0
r = 10 ** 9 + 1
for _ in range(100):
    x = (l + r) / 2
    if check(x) > k:
        l = x
    else:
        r = x
print(math.ceil(l))
Problem: p02598
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math

N,K = map(int, input().split())
A = list(map(int, input().split()))
epsilon = 10**(-9)
A = [a-epsilon for a in A]

_min = 0
_max = max(A)

while int(_min)<int(_max):
  new = (_min+_max)/2
  times = sum([math.floor(a/new) for a in A])
  
  if times <= K:
    _max = new
  else:
    _min = new
    
print(math.ceil(_max))

Failing test case input:
10 10
300786358 1102436869 281023000 24979445 861648772 623690081 433933447 476190629 302875722 211047202

Expected output:
300786358


Actual output:
300786359


Fixed submission (verdict: Accepted):
import math

N,K = map(int, input().split())
A = list(map(int, input().split()))
epsilon = 10**(-5)


_min = 0
_max = max(A)

while _max - _min > epsilon:
  new = (_min+_max)/2
  if _min < int(new):
    new = int(new)
  times = sum([math.ceil(a/new)-1 for a in A])
  
  
  if times <= K:
    _max = new
  else:
    _min = new
  

if  sum([math.ceil(a/_max)-1 for a in A]) <= K:
  print(math.ceil(_max))
else:
  print(math.ceil(_min))

Problem: p02598
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math

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

_min = 0
_max = max(A)

while int(_min)<int(_max):
  new = (_min+_max)/2
  times = sum([math.floor(a/new) for a in A])
  
  if times <= K:
    _max = new
  else:
    _min = new
    
print(math.ceil(_max))

Failing test case input:
10 16
147341777 877914575 602436426 9782395 861648772 623690081 396954413 476190629 262703497 211047202

Expected output:
211047202


Actual output:
211047203


Fixed submission (verdict: Accepted):
import math

N,K = map(int, input().split())
A = list(map(int, input().split()))
epsilon = 10**(-5)


_min = 0
_max = max(A)

while _max - _min > epsilon:
  new = (_min+_max)/2
  if _min < int(new):
    new = int(new)
  times = sum([math.ceil(a/new)-1 for a in A])
  
  
  if times <= K:
    _max = new
  else:
    _min = new
  

if  sum([math.ceil(a/_max)-1 for a in A]) <= K:
  print(math.ceil(_max))
else:
  print(math.ceil(_min))

Problem: p02598
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,k=map(int,input().split())
a=list(map(int,input().split()))
l,r=max(a),1
while l-r>1:
    t=(l+r)
    c=0
    for i in a:
        c+=i
    if c>k:
        r=t
    else:
        l=t
print(l)

Failing test case input:
10 10
158260522 877914575 938084412 24979445 861648772 231854269 433933447 216199104 262703497 211047202

Expected output:
262703497


Actual output:
938084412


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
a=list(map(int,input().split()))
l,r=10**9,0
while l-r>1:
    t=(l+r)
    if sum((i-1)
        r=t
    else:
        l=t
print(l)
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n=int(input())
n-=48
print(n)



Failing test case input:
467

Expected output:
-419


Actual output:
419


Fixed submission (verdict: Accepted):

n=int(input())
n=48-n
print(n)

Problem: p03473
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
-414

Expected output:
462


Actual output:
438


Fixed submission (verdict: Accepted):
print(48-int(input()))

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


a=input()
a=int(a)
b=24-a
print(b)

Failing test case input:
349

Expected output:
-301


Actual output:
-325


Fixed submission (verdict: Accepted):


a=input()
a=int(a)
b=24+(24-a)
print(b)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())

print(24 + m)

Failing test case input:
-145

Expected output:
193


Actual output:
-121


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

print(24 + (24 - m))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
-155

Expected output:
203


Actual output:
179


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24 - int(input()))

Failing test case input:
467

Expected output:
-419


Actual output:
-443


Fixed submission (verdict: Accepted):
print(48 - int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(24-M)

Failing test case input:
-117

Expected output:
165


Actual output:
141


Fixed submission (verdict: Accepted):
M = int(input())
print(48 - M)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(24-N)


Failing test case input:
467

Expected output:
-419


Actual output:
-443


Fixed submission (verdict: Accepted):
N = int(input())
print(48-N)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d = 25+24-n

print(d)

Failing test case input:
-145

Expected output:
193


Actual output:
194


Fixed submission (verdict: Accepted):
n = int(input())
d = 48-n

print(d)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(24+M)

Failing test case input:
-414

Expected output:
462


Actual output:
-390


Fixed submission (verdict: Accepted):
M = int(input())
print(48-M)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m=int(input())
m=24-m
print(m)

Failing test case input:
-356

Expected output:
404


Actual output:
380


Fixed submission (verdict: Accepted):
m=int(input())
m=48-m
print(m)

Problem: p03473
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m=int(input())

print(m+24)

Failing test case input:
-155

Expected output:
203


Actual output:
-131


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

print(48-m)
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



m = int(input())
ans = m + 24
print(ans)

Failing test case input:
-155

Expected output:
203


Actual output:
-131


Fixed submission (verdict: Accepted):


 
m = int(input())
ans = 24 - m + 24
print(ans)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24 - int(input()) + 12)

Failing test case input:
349

Expected output:
-301


Actual output:
-313


Fixed submission (verdict: Accepted):
print(24 - int(input()) + 24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())

print(24 - M)

Failing test case input:
-81

Expected output:
129


Actual output:
105


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

print(48 - M)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h = int(input())

print(24 - h)


Failing test case input:
-155

Expected output:
203


Actual output:
179


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

print(24 + (24 - h))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input()) + 24)


Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
print(24 - int(input()) + 24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print (24-M)

Failing test case input:
-356

Expected output:
404


Actual output:
380


Fixed submission (verdict: Accepted):
M = int(input())
print (24-M+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
print(int(24+a))

Failing test case input:
349

Expected output:
-301


Actual output:
373


Fixed submission (verdict: Accepted):
a=int(input())
print(int(24+(24-a)))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())

print ( 24 - m )

Failing test case input:
-81

Expected output:
129


Actual output:
105


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

print ( 48 - m )

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("%d\n".format(48-int(input())))

Failing test case input:
-81

Expected output:
129


Actual output:
%d



Fixed submission (verdict: Accepted):
print("{}\n".format((48-int(input()))))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
ans=24-a
print(ans)

Failing test case input:
467

Expected output:
-419


Actual output:
-443


Fixed submission (verdict: Accepted):
a=int(input())
ans=48-a
print(ans)

Problem: p03473
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
print(a+24)

Failing test case input:
-356

Expected output:
404


Actual output:
-332


Fixed submission (verdict: Accepted):
a = int(input())
print(24-a+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(M+24)


Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
M = int(input())
print(48-M)
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())
print(m+24)

Failing test case input:
-117

Expected output:
165


Actual output:
-93


Fixed submission (verdict: Accepted):
m = int(input())
print(48-m)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
T = M + 24
print(T)

Failing test case input:
-155

Expected output:
203


Actual output:
-131


Fixed submission (verdict: Accepted):
M = int(input())
T = (24 - M) + 24
print(T)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m=int(input())
print(m+24)

Failing test case input:
-117

Expected output:
165


Actual output:
-93


Fixed submission (verdict: Accepted):
m=int(input())
print((24-m)+24)

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

M = int(input())


total =  M + 24
print(total)

Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):

M = int(input())
 

total =  (24 - M) + 24
print(total)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input()) + 24)

Failing test case input:
-81

Expected output:
129


Actual output:
-57


Fixed submission (verdict: Accepted):
print(48 - int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m=int(input())
x=24+(24-m)
print(m)


Failing test case input:
-356

Expected output:
404


Actual output:
-356


Fixed submission (verdict: Accepted):
m=int(input())
x=24+(24-m)
print(x)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input())+24)

Failing test case input:
-414

Expected output:
462


Actual output:
-390


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())

answer = 24 - M 

print(answer)

Failing test case input:
-356

Expected output:
404


Actual output:
380


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

answer = 24 - M + 24 

print(answer)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("{}".format(int(input()) + 24))


Failing test case input:
-414

Expected output:
462


Actual output:
-390


Fixed submission (verdict: Accepted):
print("{}".format(24 - int(input()) + 24))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N%24 + 24)

Failing test case input:
-81

Expected output:
129


Actual output:
39


Fixed submission (verdict: Accepted):
N = int(input())
print(24-N+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
print(24-a)


Failing test case input:
-155

Expected output:
203


Actual output:
179


Fixed submission (verdict: Accepted):
a = int(input())
print(48-a)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input()) + 24)

Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
print(int(input()) *-1 + 48)
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
answer = 24 + 24 - M
print(M)

Failing test case input:
-145

Expected output:
193


Actual output:
-145


Fixed submission (verdict: Accepted):
M = int(input())
answer = 24 + 24 - M
print(answer)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())

print(a + 24)

Failing test case input:
-117

Expected output:
165


Actual output:
-93


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

print((24-a)+24)

Problem: p03473
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
M=int(input())

print=(48-M)


Failing test case input:
-117

Expected output:
165


Actual output:

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

print(48-M)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(24-M)

Failing test case input:
-81

Expected output:
129


Actual output:
105


Fixed submission (verdict: Accepted):
M = int(input())
print(48-M)

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

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    M = int(readline())
    print(24+M%24)


if __name__ == '__main__':
    main()


Failing test case input:
-155

Expected output:
203


Actual output:
37


Fixed submission (verdict: Accepted):
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    M = int(readline())
    print(48-M)


if __name__ == '__main__':
    main()

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())
print(m + 24)

Failing test case input:
-145

Expected output:
193


Actual output:
-121


Fixed submission (verdict: Accepted):
m = int(input())
print((24-m) + 24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h = int(input())

print(24 + h)


Failing test case input:
-155

Expected output:
203


Actual output:
-131


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

print(24 + (24 - h))

Problem: p03473
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m = int(input())
print((24 - m) * 3)

Failing test case input:
467

Expected output:
-419


Actual output:
-1329


Fixed submission (verdict: Accepted):
m = int(input())
print(24 + 24 - m)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = int(input())
print(i+24)

Failing test case input:
349

Expected output:
-301


Actual output:
373


Fixed submission (verdict: Accepted):
i = int(input())
print((24-i)+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())
ans = 48-m

Failing test case input:
-81

Expected output:
129


Actual output:

Fixed submission (verdict: Accepted):
m = int(input())
ans = 48-m
print(ans)
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(M+24)

Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
M = int(input())
print(48-M)

Problem: p03473
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(60-int(input()))

Failing test case input:
-145

Expected output:
193


Actual output:
205


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
 
print(a-48)

Failing test case input:
467

Expected output:
-419


Actual output:
419


Fixed submission (verdict: Accepted):
a = int(input())
 
print(48-a)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=48-a

Failing test case input:
-81

Expected output:
129


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
b=48-a
print(b)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input())-48)

Failing test case input:
-155

Expected output:
203


Actual output:
-203


Fixed submission (verdict: Accepted):
print(48 - int(input()))

Problem: p03473
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(int(input())+24)

Failing test case input:
349

Expected output:
-301


Actual output:
373


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
M=input()
M=int(M)

print=(48-M)


Failing test case input:
-356

Expected output:
404


Actual output:

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

print(48-M)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m=int(input())
ans=48-m

Failing test case input:
-155

Expected output:
203


Actual output:

Fixed submission (verdict: Accepted):
m=int(input())
ans=48-m
print(ans)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input()) + 24)

Failing test case input:
-145

Expected output:
193


Actual output:
-121


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = int(input())
print(24 + (M-24))


Failing test case input:
-414

Expected output:
462


Actual output:
-414


Fixed submission (verdict: Accepted):
M = int(input())
print(24 + (24-M))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
-414

Expected output:
462


Actual output:
438


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=24-a
print(a)

Failing test case input:
-155

Expected output:
203


Actual output:
-155


Fixed submission (verdict: Accepted):
a=int(input())
b=48-a
print(b)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input())+12)

Failing test case input:
349

Expected output:
-301


Actual output:
361


Fixed submission (verdict: Accepted):
print(48-int(input()))
Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
467

Expected output:
-419


Actual output:
-443


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())
print(24+m)

Failing test case input:
-155

Expected output:
203


Actual output:
-131


Fixed submission (verdict: Accepted):
m = int(input())
print(24-m+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
-145

Expected output:
193


Actual output:
169


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())
print(24 - m)

Failing test case input:
-145

Expected output:
193


Actual output:
169


Fixed submission (verdict: Accepted):
m = int(input())
print(48 - m)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(int(input())-24)

Failing test case input:
-155

Expected output:
203


Actual output:
-179


Fixed submission (verdict: Accepted):
print(48-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24 - int(input()))

Failing test case input:
-414

Expected output:
462


Actual output:
438


Fixed submission (verdict: Accepted):
print(48 - int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
t = int(input())
print(t+24)

Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
t = int(input())
print((24-t)+24)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m = int(input())

print(24-m)

Failing test case input:
467

Expected output:
-419


Actual output:
-443


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

print(48-m)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24+int(input()))

Failing test case input:
467

Expected output:
-419


Actual output:
491


Fixed submission (verdict: Accepted):
print(24+24-int(input()))

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
ans = 48 - a
print(a)

Failing test case input:
-356

Expected output:
404


Actual output:
-356


Fixed submission (verdict: Accepted):
a = int(input())
ans = 48 - a
print(ans)

Problem: p03473
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(24-int(input()))

Failing test case input:
-117

Expected output:
165


Actual output:
141


Fixed submission (verdict: Accepted):
print(48-int(input()))
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = input()
for i in range(len(l)-1):
  if l[i:i+1] == "AC":
    print("Yes")
    break
else:
  print("No")
  

Failing test case input:
AAAC@

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
l = input()
for i in range(len(l)-1):
  if l[i:i+2] == "AC":
    print("Yes")
    break
else:
  print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
flag=False
for i in range(len(s)-1):
  print(s[i:i+2])
  if s[i:i+1]=='AC':
    flag=True
if flag:
  print('Yes')
else:
  print('No')

Failing test case input:
WU

Expected output:
No


Actual output:
WU
No


Fixed submission (verdict: Accepted):
s=input()
flag=False
for i in range(len(s)-1):
  if s[i:i+2]=='AC':
    flag=True
if flag:
  print('Yes')
else:
  print('No')

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

for i in range(len(s)):
    if s[i] == 'A' and i+1 < len(s):
        if s[i+1] == 'C':
            print('Yes')
            exit()
        else:
            print('No')

Failing test case input:
XT

Expected output:
No


Actual output:

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

for i in range(len(s)):
    if i+1 < len(s):
        if s[i]+s[i+1] == 'AC':
            print('Yes')
            exit()
print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
b=True
for i in range(0,len(s)-1):
    if s[i:i+2]=='AC':
        print('Yes')
        b=False
if b==True:print('No')

Failing test case input:
ACACA

Expected output:
Yes

Actual output:
Yes
Yes


Fixed submission (verdict: Accepted):
s=input()
b=True
for i in range(0,len(s)-1):
    if s[i:i+2]=='AC':
        print('Yes')
        b=False
        break
if b==True:print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YNeos'['AC'in input()::2])

Failing test case input:
ZT

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
print('YNeos'[not'AC'in input()::2])

Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
flag = 0
for i in range(len(s) - 2):
    if s[i] == "A":
        if s[i + 1] == "C":
            flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Failing test case input:
D@AC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
flag = 0
for i in range(len(s) - 1):
    if s[i] == "A":
        if s[i + 1] == "C":
            flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print("yes" if "AC" in s else "No")


Failing test case input:
ECAC

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
s = input()
print("Yes" if "AC" in s else "No")
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
for i in range(0,len(s)-1):
    if s[i]=="A" and s[i+1]=="C":
        print("Yes")
        exit()
    else:
        print("No")

Failing test case input:
BCDB

Expected output:
No


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
s=input()
for i in range(0,len(s)-1):
    if s[i]=="A" and s[i+1]=="C":
        print("Yes")
        exit()

print("No")

Problem: p03567
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
ans = "No"
for i in range(len(s)-1):
  if s[i:i+2] == "AC":
    print("Yes")
print(ans)

Failing test case input:
B@AC@

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
    
s = input()
ans = "No"
for i in range(len(s)-1):
  if s[i] == "A" and s[i+1] == "C":
    ans = "Yes"
    break
print(ans)

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
if(S.find('AC')):
 print('Yes')
else:
 print('No')

Failing test case input:
@CABA

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
if 'AC' in S:
 print('Yes')
else:
 print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
f = True
for i in range( len(S)-1 ):
    if S[i] == 'A' and S[i+1] == 'C':
        print('Yes')
        f = False

if f:
    print('No')


Failing test case input:
ACACA

Expected output:
Yes

Actual output:
Yes
Yes


Fixed submission (verdict: Accepted):
S=input()
f=True
for i in range( len(S)-1 ):
    if S[i] == 'A' and S[i+1] == 'C':
        f = False
        

if f:
    print('No')
else:
    print('Yes')

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

for i in range(len(S)-1):
  if S[i]=='A' and S[i+1]=='C':
    print('Yes')
  else:
    print('No')

Failing test case input:
BCBD

Expected output:
No


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
S=input()
 
for i in range(len(S)-1):
  if S[i]=='A' and S[i+1]=='C':
    print('Yes')
    exit()
print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S.count("AC") == 1:
  print("Yes")
else:
  print("No")

Failing test case input:
ACACA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
if S.count("AC") >= 1:
  print("Yes")
else:
  print("No")

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

for i in range(len(s)-2):
    if s[i:i+2] == 'AC':
        print('Yes')
        exit()

print('No')

Failing test case input:
ECAC

Expected output:
Yes


Actual output:
No


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

for i in range(len(s)-1):
    if s[i:i+2] == 'AC':
        print('Yes')
        exit()

print('No')
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split()
flag = 0
for i in range(len(S)-2+1):
    if S[i:i+2]=="AC":
        flag = 1
        break
if flag==1:
    print("Yes")
else:
    print("No")

Failing test case input:
D?AC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input().strip()
flag = 0
for i in range(len(S)-2+1):
    if S[i:i+2]=="AC":
        flag = 1
        break
if flag==1:
    print("Yes")
else:
    print("No")

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


data = input()

if data.find('AC') > -1:
    print("OK")
else:
    print("NG")


Failing test case input:
BCDE

Expected output:
No


Actual output:
NG


Fixed submission (verdict: Accepted):


data = input()

if data.find('AC') > -1:
    print("Yes")
else:
    print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
flag=False
for i in range(len(s)-1):
  if s[i:i+1]=='AC':
    flag=True
if flag:
  print('Yes')
else:
  print('No')

Failing test case input:
ACDE

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
flag=False
for i in range(len(s)-1):
  if s[i:i+2]=='AC':
    flag=True
if flag:
  print('Yes')
else:
  print('No')

Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if 'AC' in S:
  print("AC")
else:
  print("NO")

Failing test case input:
DBDB

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
if 'AC' in S:
  print("Yes")
else:
  print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
out = "NO"
for i in range(len(s)):
    if i+1 != len(s):
        if s[i] == "A" and s[i+1] == "C":
            out = "YES"
print(out)
        

Failing test case input:
ACBAA

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
out = "No"
for i in range(len(s)):
    if i+1 != len(s):
        if s[i] == "A" and s[i+1] == "C":
            out = "Yes"
print(out)

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

if S.find("A")>-1 and S.find("B")>-1:
  print("Yes")
else:
  print("No")

Failing test case input:
CDBA

Expected output:
No


Actual output:
Yes


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

if S.find("AC")>-1:
  print("Yes")
else:
  print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
found = False
for i in range(len(s)):
    if s[i] == 'a' and s[i+1] == 'c':
        print('Yes')
        found = True
        break
if not found:
    print('No')


Failing test case input:
CACE

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
found = False
for i in range(len(s)-1):
    if s[i] == 'A' and s[i+1] == 'C':
        print('Yes')
        found = True
        break
if not found:
    print('No')
Problem: p03567
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
l = list(input())

if "AC" in l:
  print("Yes")
else:
  print("No")

Failing test case input:
CACD

Expected output:
Yes


Actual output:
No


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

if "AC" in l:
  print("Yes")
else:
  print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s= input()
t=0
for i in range(len(s)-1):
  if s[i:i+1]=="AC":
    t +=1
if t>0:
  print("Yes")
else:
  print("No")


Failing test case input:
ACBAA

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s= input()
t=0
for i in range(len(s)-1):
  if s[i]+s[i+1]=="AC":
    t +=1
if t>0:
  print("Yes")
else:
  print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
yn=0
for i in range(len(s)-1):
    if s[i:i+1]=="AC":
        yn=1
        break
if yn==1:
    print("Yes")
else:
    print("No")


Failing test case input:
BAAC@

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
yn=0
for i in range(len(s)-1):
    if s[i:i+2]=="AC":
        yn=1
        break
if yn==1:
    print("Yes")
else:
    print("No")

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

if s.count("AC") >=1:
  print("YES")
else:
  print("NO")

Failing test case input:
BC?E

Expected output:
No


Actual output:
NO


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

if s.count("AC") >=1:
  print("Yes")
else:
  print("No")

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





def checker(target):
    if len(target.split("AC")) > 0:
        print("Yes")
    else:
        print("No")



if __name__ == '__main__':
    target = input()
    checker(target)


Failing test case input:
D@@C

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):





def checker(target):
    if len(target.split("AC")) > 1:
        print("Yes")
    else:
        print("No")



if __name__ == '__main__':
    target = input()
    checker(target)

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = [i for i in input()]
if "AC"in s:
    print("Yes")
else:
    print("No")

Failing test case input:
DCAC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if "AC"in s:
    print("Yes")
else:
    print("No")

Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if 'AC' in S:
  print("AC")
else:
  print("No")


Failing test case input:
BAAC@

Expected output:
Yes


Actual output:
AC


Fixed submission (verdict: Accepted):
S = input()
if 'AC' in S:
  print("Yes")
else:
  print("No")
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
for i in range(len(s)):
  if s[i]=="A":
    for j in reversed(range(len(s))):
      if s[j] == "C":
        if i<j:
          print("Yes")
          exit()
print("No")

Failing test case input:
A@C@@

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
for i in range(len(s)):
  if s[i]=="A":
    for j in reversed(range(i,len(s))):
      if s[j] == "C":
        if j==i+1:
          print("Yes")
          exit()
print("No")

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

if "A" in s and "C" in s:
    ans = "Yes"
else:
    ans = "No"

print(ans)


Failing test case input:
D?CA

Expected output:
No


Actual output:
Yes


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

if "AC" in s:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YES" if "AC" in input() else "NO")


Failing test case input:
TW

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("Yes" if "AC" in input() else "No")

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

def main():
    s = input()
    print("YES" if "AC" in s else "NO")


if __name__ == "__main__":
    main()

Failing test case input:
CBDB

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

def main():
    s = input()
    print("Yes" if "AC" in s else "No")


if __name__ == "__main__":
    main()

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a = ''
for i in range(len(s)-1):  
  if s[i] + s[i+1] =='AC':
    a = 'yes'
  else:
    pass

if a == 'yes':
  print(a)
else:
  print('no')

Failing test case input:
CCEA

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s = input()
a = ''
for i in range(len(s)-1):  
  if s[i] + s[i+1] =='AC':
    a = 'Yes'
  else:
    pass

if a == 'Yes':
  print(a)
else:
  print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
flg=False
for i in range(len(S)-2):
    if S[i:i+2]=='AC':
        flg=True
        break
ans='Yes' if flg else 'No'
print(ans)

Failing test case input:
DCAC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
flg=False
for i in range(len(S)-1):
    if S[i:i+2]=='AC':
        flg=True
        break
ans='Yes' if flg else 'No'
print(ans)

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

flag = True

for i in range(len(s)-1):
  if s[i] == 'A' and s[i+1] == 'C':
    print("Yes")
    flag = False
    
if flag:
  print("No")
    


Failing test case input:
ACACA

Expected output:
Yes

Actual output:
Yes
Yes


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

flag = True

for i in range(len(s)-1):
  if s[i] == 'A' and s[i+1] == 'C':
    if flag:
      print("Yes")
    flag = False
    
if flag:
  print("No")
Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = list(input())
for i in range(len(s) - 1):
    if s[i] == "A" and s[i + 1] == "C":
        print("YES")
        exit()
print("NO")

Failing test case input:
E?CC

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = list(input())
for i in range(len(s) - 1):
    if s[i] == "A" and s[i + 1] == "C":
        print("Yes")
        exit()
print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(["NO","YES"]["AC"in input()])

Failing test case input:
?AC@@

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
print(["No","Yes"]["AC"in input()])

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
for i in range(len(s)-2):
    if s[i] == 'A' and s[i+1] == 'C':
        print('Yes')
        exit()
print('No')

Failing test case input:
D@AC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
for i in range(len(s)-1):
    if s[i] == 'A' and s[i+1] == 'C':
        print('Yes')
        exit()
print('No')

Problem: p03567
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
ans = 'Yes' if any(s[i:i + 2] for i in range(len(s) - 1)) else 'No'
print(ans)


Failing test case input:
XV

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
ans = 'Yes' if any(s[i:i + 2] == 'AC' for i in range(len(s) - 1)) else 'No'
print(ans)

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if "AC" in input() == True:
    print("Yes")
else:
    print("No")

Failing test case input:
CACE

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
answer = "AC" in input()
if answer == False:
    print("No")
else:
    print("Yes")

Problem: p03567
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
ans = "No"
for i in range(len(s)-1):
  if s[i:i+1] == "AC":
    print("Yes")
print(ans)

Failing test case input:
DCAC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
    
s = input()
ans = "No"
for i in range(len(s)-1):
  if s[i] == "A" and s[i+1] == "C":
    ans = "Yes"
    break
print(ans)

Problem: p03567
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s=input()
if 'CD' in s:
    print('Yes')
else:
    print('No')

Failing test case input:
CDBA

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
if 'AC' in s:
    print('Yes')
else:
    print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
i=0
p="Yes"
d=0
while i<len(S)-1 and d==0:
    if S[i]=="A" and S[i+1]=="C":
        d=1
    i+=1
if i==len(S)-1:
    p="No"
print(p)

Failing test case input:
DCAC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S=input()
i=0
p="No"
d=0
while i<len(S)-1 and d==0:
    if S[i]=="A" and S[i+1]=="C":
        d=1
    i+=1
if d==1:
    p="Yes"
print(p)
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
for i in range(len(S)-1):
  if S[i]+S[i] == "AC":
    print("Yes")
    break
print("No")

Failing test case input:
?AC@@

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
S = input()
for i in range(len(S)-1):
  if S[i]+S[i+1] == "AC":
    print("Yes")
    sys.exit()
print("No")

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

for i in range(len(s) - 1):
    if 'A' == s[i]:
        if 'C' == s[i]:
            print('Yes')
            exit(0)

print('No')

Failing test case input:
B@AC@

Expected output:
Yes


Actual output:
No


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

for i in range(len(s) - 1):
    if 'A' == s[i]:
        if 'C' == s[i + 1]:
            print('Yes')
            exit(0)

print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input("");
flag=False;
for i in range(0,len(a)-2):
  if a[i]=='A' and a[i+1]=='C':
    flag=True;
if flag==True:
  print("Yes");
else:
  print("No");

Failing test case input:
D@AC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=input("");
flag=False;
for i in range(0,len(a)-1):
  if a[i]=='A' and a[i+1]=='C':
    flag=True;
if flag==True:
  print("Yes");
else:
  print("No");

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
if(S in 'AC'):
 print('Yes')
else:
 print('No')

Failing test case input:
ECAC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S=input()
if 'AC' in S:
 print('Yes')
else:
 print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=input()
y='AC'


if x in y==True:
    print('Yes')
else:
    print('No')



Failing test case input:
ACABA

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
x=input()
y='AC'


if (y in x) ==True:
    print('Yes')
else:
    print('No')

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s in "AC":
    print("Yes")
else:
    print("No")


Failing test case input:
AAAC@

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if "AC" in s :
    print("Yes")
else:
    print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import re

s = input()
m = re.match("AC",s)
if m:
  print("Yes")
else:
  print("No")
  
 

Failing test case input:
?AC@@

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import re

s = input()
m = re.search("AC",s)
if m:
  print("Yes")
else:
  print("No")

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

if s in 'AC':
    print('Yes')

else:
    print('No')

Failing test case input:
?ACA@

Expected output:
Yes


Actual output:
No


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

if 'AC' in s:
    print('Yes')

else:
    print('No')
Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input().find("AC"):
    print("Yes")
else:
    print("No")

Failing test case input:
CCDF

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
if input().find("AC") >= 0:
    print("Yes")
else:
    print("No")

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input("");
a=a.upper();
flag=False;
for i in range(0,len(a)-2):
  if a[i]=='A' and a[i+1]=='C':
    flag=True;
if flag==True:
  print("Yes");
else:
  print("No");

Failing test case input:
D?AC

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=input("");
flag=False;
for i in range(0,len(a)-1):
  if a[i]=='A' and a[i+1]=='C':
    flag=True;
if flag==True:
  print("Yes");
else:
  print("No");

Problem: p03567
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
count = 1
flag = "ok"
for i in s:
  if count == 2:
    if i != "A":
      flag = "ng"
  if count == 3:
    if i != "C":
      flag = "ng"
  count += 1
if flag == "ng":
  print("No")
else:
  print("Yes")

Failing test case input:
ACAAA

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
flag1 = "ng"
flag2 = "ng"
for i in s:
    if flag1 == "ok":
      if i == "C":
        flag2 = "ok"
        break
    if i == "A":
      flag1 = "ok"
    else:
      flag1 = "ng"

if flag2 == "ng":
  print("No")
else:
  print("Yes")