Problem:


Score : 100 points

Problem Statement

Snuke built an online judge to hold a programming contest.

When a program is submitted to the judge, the judge returns a verdict, which is a two-character string that appears in the string S as a contiguous substring.
(The judge can return any two-character substring of S.)

Determine whether the judge can return the string AC as the verdict to a program.

Constraints

2 \leq |S| \leq 5

S consists of uppercase English letters.

Input

Input is given from Standard Input in the following format:

S

Output

If the judge can return the string AC as a verdict to a program, print Yes; if it cannot, print No.

Sample Input 1

BACD

Sample Output 1

Yes

The string AC appears in BACD as a contiguous substring (the second and third characters).

Sample Input 2

ABCD

Sample Output 2

No

Although the string ABCD contains both A and C (the first and third characters), the string AC does not appear in ABCD as a contiguous substring.

Sample Input 3

CABD

Sample Output 3

No

Sample Input 4

ACACA

Sample Output 4

Yes

Sample Input 5

XX

Sample Output 5

No



Sample input:
BACD


Sample output:
Yes

Submission status: Accepted

Solution code:
S = list(input())
for i in range(len(S)-1):    
    if S[i] == "A" and S[i+1] == "C":
        print("Yes")
        import sys
        sys.exit()
print("No")

Submission status: Accepted

Solution code:
import sys
S = input()

for i in range(len(S)-1):
  if S[i] == "A" and S[i+1] == "C":
    print ("Yes")
    sys.exit()
    
print ("No")

Submission status: Accepted

Solution code:
s = str(input())
n = len(s)

ans = "No"
for i in range(1,n):
  if s[i-1] == "A" and s[i] == "C":
    ans = "Yes"
    break

print(ans)

Submission status: Accepted

Solution code:
# 2019/12/6

print('Yes' if 'AC' in input() else 'No')

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S) - 1):
    if S[i:i + 2] == "AC":
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S) - 1):
    if S[i: i + 2] == "AC":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
s = input()
ans = "No"
for i in range(len(s) - 1):
  if s[i:i+2] == "AC":
    ans = "Yes"
    break
print(ans)

Submission status: Accepted

Solution code:
S = input()
if "AC" in S:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
if 'AC' in input():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
print('Yes' if 'AC' in s else 'No')

Submission status: Accepted

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    s = str(readline().rstrip().decode('utf-8'))
    for i in range(len(s)-1):
        if s[i:i+2] == "AC":
            print("Yes")
            exit()
    print("No")


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
S = input()
for _ in range(len(S) - 1):
    if S[_:_ + 2] == "AC":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

if 'AC' in S:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if input().find("AC") != -1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#coding:utf-8

s = input()
n = len(s)
ans = 'No'

for i in range(0, n-1):
    if s[i:i+2] == 'AC':
        ans = 'Yes'
        break

print(ans)

Submission status: Accepted

Solution code:
#coding:utf-8

s = input()

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

Solution code:
#Can you get AC?
S = input()
n = len(S)
p = 0
for i in range(n-1):
    if S[i:i+2] == "AC":
        print("Yes")
        p = p + 1
        break
    else:
        continue
if p == 0:
    print("No")

Submission status: Accepted

Solution code:
s=input()
if 'AC' in s:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
print(("No","Yes")["AC" in input()])

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
x=list(input())
ans='No'
for i in range(len(x)-1):
  if x[i]=='A':
    if x[i+1]=='C':
      ans='Yes'
print(ans)

Submission status: Accepted

Solution code:
S = input()
ans = "No"
for i in range(len(S)-1):
	if S[i:i+2] == "AC":
		ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000)
INF = 1<<32

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(S: str):
    print(YES) if S.count('AC') >= 1 else print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()
flg = 0
n = len(s)
for i in range(n-1):
    if s[i] == "A" and s[i+1] == "C":
        flg = 1
        break
    else:
        flg = 0
if flg == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s=input()
f=0
for i in range(1,len(s)):
    if s[i-1:i+1]=="AC":
        f=1
        break
print("Yes" if f else "No")

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
s = str(input())
if 'AC' in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S=input()
ans=1
for i in range(len(S)-1):
  if(S[i]=='A' and S[i+1]=='C'):
    print("Yes")
    ans=0
    break
if(ans):
  print("No")

Submission status: Accepted

Solution code:
print(["No", "Yes"]["AC" in input()])

Submission status: Accepted

Solution code:
print("Yes") if "AC" in input() else print("No")

Submission status: Accepted

Solution code:
print("NYoe s"["AC"in input()::2])

Submission status: Accepted

Solution code:
S = input()
print('YNeos'['AC' not in S::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if "AC" in S:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()

if 'AC' in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
    if S[i:i+2] == "AC":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    print("Yes" if len(s) != len(s.replace("AC", "")) else "No")


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
s = input()
for i in range(len(s) - 1):
    if s[i:i+2] == "AC":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
def main():
    S = input()
    print("Yes" if 'AC' in S else 'No') 

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#! usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    S = input()

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

    print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = list(input())

f1 = False
f2 = False

for i in range(len(s)):
        if s[i] == 'A':
                f1 = True
        if f1 and s[i] == 'C':
                f2 = True
                f1 = False
                break
        if s[i] != 'A':
                f1 = False

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

Submission status: Accepted

Solution code:
s = input()
if s.count('AC') > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
yes = False
for i in range(len(S) - 1):
    if S[i:i + 2] == "AC":
        yes = True
    
if yes:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
for i in range(len(s)):
  if 'AC' in s:
    ans =1
  else:
    ans =0
print('Yes' if ans ==1 else 'No')

Submission status: Accepted

Solution code:
from sys import stdin

def readString() :
    return  stdin.readline().rstrip()

def solve() :
    S = readString()
    pos = S.find('AC')
    if(pos!=-1):
        print("Yes")
    else :
        print("No")
solve()

Submission status: Accepted

Solution code:
S=input()
N=len(S)

for i in range(N-1):
  if S[i]=="A" and S[i+1]=="C":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
def main():

    S = input()
    for i in range(len(S)-1):
        if S[i:i+2] == "AC":
            return "Yes"
    return "No"

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

Submission status: Accepted

Solution code:
S = input()
if "AC" in S:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
S = input()
if S.count("AC") >= 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s=list(input())
l=len(s)
ans="No"
for i in range(l-1):
    if(s[i]=="A" and s[i+1]=="C"):
        ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
S=input()

before=''
for s in S:
  if before+s=='AC':
    print('Yes')
    exit()
  before=s
print('No')

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    for i in range(1, len(s)):
        if s[i] == "C" and s[i-1] == "A":
            print("Yes")
            exit()
    print("No")


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
print(" YNeos"["AC"in input()::2])

Submission status: Accepted

Solution code:
print("Yes") if "AC" in input() else print("No")

Submission status: Accepted

Solution code:
S = input()
f = False
for i in range(len(S)-1):
  if S[i:i+2]=="AC":
    f = True
if f:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = input()
print('Yes') if 'AC' in s else print('No')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

S = input()

# print(S)


# print('AC' in S)

if 'AC' in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def solve(s):
    return "Yes" if "AC" in s else "No"
print(solve(input()))

Submission status: Accepted

Solution code:
print('Yes' if 'AC' in input() else  'No')

Submission status: Accepted

Solution code:
#n=int(input())
#A=list(map(int,input().split()))
#b=list(map(int,input().split()))
s=list(input())
n=len(s)
for i in range(n-1):
        tmp="".join(s[i:i+2])
        if tmp=="AC":
                print("Yes")
                exit()
print("No")

Submission status: Accepted

Solution code:
import re
print("Yes" if re.search(r"AC", input()) else "No")

Submission status: Accepted

Solution code:
    
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)

Submission status: Accepted

Solution code:
from sys import exit

from copy import deepcopy
import numpy as np

import bisect

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))


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

    print('No')

main()

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = input()
flag = 0
for i in s:
    if i == 'A':
        flag = 1
        continue
    if i == 'C' and flag == 1:
        print('Yes')
        exit()
    flag = 0
print('No')

Submission status: Accepted

Solution code:
# h,w=map(int,input().split())
s=input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
print('Yes' if input().count('AC') else 'No')

Submission status: Accepted

Solution code:
f = 'AC' in input()
print('Yes' if f else 'No')

Submission status: Accepted

Solution code:
s=input()
ans="No"
for i in range(len(s)-1):
  if s[i]+s[i+1]=="AC":
    ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
S=input()
if "AC" in S:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S=input()
ans="No"
for i in range(5):
  if S[i:i+2]=="AC":
    ans="Yes"
    break
print(ans)

Submission status: Accepted

Solution code:
S = input()
n = len(S)

for i in range(n-1):
    if "AC" in S:
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
S = input()
n = len(S)

for i in range(n-1):
    if S[i:i+2] == "AC":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
N=input()
if N.find('AC')+1:print("Yes")
else :print("No")

Submission status: Accepted

Solution code:
S = str(input())
for i in range(4):
    if S[i:i+2]=="AC":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
S = input()
print("Yes" if ("AC" in S) else "No")

Submission status: Accepted

Solution code:
print(["Yes", "No"][not(input().count("AC"))])

Submission status: Accepted

Solution code:
# code-festival-2017-qualcA - Can you get AC?
def main():
    s = input()
    print("Yes" if "AC" in s else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
print(('No','Yes')['AC' in input()])

Submission status: Accepted

Solution code:
def main():
    S = input()
    if "AC" in S:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

if 'A' in s and 'C' == s[(s.index('A')+1)]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
    if S[i] == "A" and S[i+1] == "C":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
import re
s = input().rstrip()
print('Yes' if re.search('AC', s) else 'No')

Submission status: Accepted

Solution code:
import sys
s=input()
for i in range(len(s)-1):
    if s[i]=='A' and s[i+1]=='C':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
S = input()
print('Yes' if 'AC' in S else 'No')

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
    if S[i:i+2] == "AC":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
    if S[i:i+2] == "AC":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
x=input()
ans='AC' in x
if ans==True:
    print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
s = input()
if s.find("AC") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=input()
flag=0
for i in range(len(a)-1):
  if a[i:i+2]=="AC":
    flag=1
    break
print("Yes" if flag==1 else "No")

Submission status: Accepted

Solution code:
import bisect
import os
from collections import Counter, deque
from fractions import gcd
from functools import lru_cache
from functools import reduce
import functools
import heapq
import itertools
import math
import numpy as np
import re
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(2147483647)
INF = float("inf")

S = sys.stdin.readline().rstrip()
if 'AC' in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
print('Yes' if input().count('AC') > 0 else 'No')

Submission status: Accepted

Solution code:
# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

readl= lambda: list(map(int, sys.stdin.readline().split()))
readt= lambda: tuple(map(int, sys.stdin.readline().split()))
read = lambda: sys.stdin.readline().rstrip()
readi = lambda: int(read())
readmi = lambda: map(int, sys.stdin.readline().split())
readms = lambda: map(str, sys.stdin.readline().split())

s = read()
if 'AC' in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
###template###
import sys
def input(): return sys.stdin.readline().rstrip()
def mi(): return map(int, input().split())
###template###

if 'AC' in input(): print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
if "AC" in input():
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
s=input()
print('Yes') if 'AC' in s else print('No')

Submission status: Accepted

Solution code:
import re
print("Yes" if re.search("AC", input()) else "No")

Submission status: Accepted

Solution code:
print("YNeos"["AC" not in input()::2])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Can you get AC?
https://atcoder.jp/contests/code-festival-2017-qualc/tasks/code_festival_2017_qualc_a

"""
import sys


def solve(S):
    if 'AC' in S:
        return 'Yes'
    return 'No'


def main(args):
    S = input()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
def solve():
	S = input()
	for i in range(len(S)-1):
		if S[i:i+2]=='AC':
			print('Yes')
			return
	print('No')
	return

solve()

Submission status: Accepted

Solution code:
s = input()
if "AC"in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes"if"AC"in input()else"No")

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
ans = "No"
for i in range(len(S) - 1):
  if S[i:i + 2] == "AC":
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
S = input()
flag = False
for i in range(len(S)-1):
    if S[i:i+2] == 'AC':
        flag = True
        break
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=list(input())
s.append("0")
flag=0
for i in range(5):
  if s[i]=="A" and s[i+1]=="C":
    flag=1
    break
  elif s[i]=="0":
    break
if flag==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
import re
print("Yes" if re.search("AC", input()) else "No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

S=input()

if S.count('AC'):
    Yes()
else:
    No()

Submission status: Accepted

Solution code:
s = input()
flag = 0
for i in range(len(s)-1):
  if s[i:i+2] == "AC":
    flag = 1
if flag == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
print('No' if input().find('AC') < 0 else 'Yes')

Submission status: Accepted

Solution code:
print('Yes'if'AC'in input() else'No')

Submission status: Accepted

Solution code:
print('YNeos'[not'AC'in input()::2])

Submission status: Accepted

Solution code:
S = input()
flag = False

for i in range(4):
    if S[i:i+2] == "AC":
        flag = True

print("Yes" if flag else "No")

Submission status: Accepted

Solution code:
if "AC"in input():print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
s=input()
for i in range(len(s)-1):
    if s[i:i+2]=="AC":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
  if S[i:i+2]=="AC":
    print("Yes")
    break
else:
  print("No")

Submission status: Accepted

Solution code:
s = str(input())
for i in range(len(s)):
    if s[i] == "A" and s[i+1] == "C":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
ans = "No"
for i in range(len(S)-1):
  if(S[i:i+2] == "AC"):
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
s = input()
for i in range(len(s)-1):
  if s[i:i+2] == "AC":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
import re;print('Yes'if re.match('.*AC',input())else'No')

Submission status: Accepted

Solution code:
S = input()

ans = False
for i in range(len(S) - 1):
    if S[i:i+2] == "AC":
        ans = True

print("Yes" if ans else "No")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
a=input()
if "AC" in a:
  print("Yes")
else:print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if "AC"in input():
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s=input()
if 'AC' in s:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
s = str(input())
for i in range(1,len(s)):
    if s[i-1] == "A" and s[i] == "C":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
import sys

a=input()
for i in range(len(a)-1):
  if a[i]=='A' and a[i+1]=='C':
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

Solution code:
import sys 
s=input()
n=len(s)
for i in range(n-1):
    if s[i]=='A' and s[i+1]=='C':
        print("Yes")
        sys.exit()
print("No")

Submission status: Accepted

Solution code:
s = input()
ans = 'No'
n = len(s)
for i in range(n-1):
  if s[i:i+2] =='AC': ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
s = input()
for i in range(len(s)-1):
  if s[i]=="A" and s[i+1]=="C":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
n=input()
c=0
for i in range(1,len(n)):
    if n[i-1:i+1]=="AC":
        c=1
print("Yes"if c!=0else"No")

Submission status: Accepted

Solution code:
S=input()

f=-1

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

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

Submission status: Accepted

Solution code:
S = input()
for s, ns in zip(S, S[1:]):
  if s + ns == "AC":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
print("Yes" if input().count('AC') else "No")

Submission status: Accepted

Solution code:
s = input()
if s.find("AC") > -1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
if 'AC' in input():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()

if S[0:2] == "AC" or S[1:3] == "AC" or S[2:4] == "AC" or S[3:5] == "AC" or S[4:6] == "AC":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
if "AC" in input() :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
s = input()
l = []
for i in range(len(s)-1):
  l.append(s[i:i+2])
print("Yes" if "AC" in l else "No")

Submission status: Accepted

Solution code:
s=input()
res=[]
for i in range(len(s)-1):
    res.append(s[i:i+2])
print("Yes" if "AC" in res else "No")

Submission status: Accepted

Solution code:
print("YNeos"["AC"not in input()::2])

Submission status: Accepted

Solution code:
S = input()

for i,s in enumerate(S):
    if s == 'A':
        if i != len(S) and S[i+1] == 'C':
            print('Yes')
            break

else:
    print('No')

Submission status: Accepted

Solution code:
s = str(input())
list_s = list(s)
ans = "No"
for i in range(len(s)-1):
	if list_s[i] == "A" and list_s[i+1] == "C":
		ans = "Yes"
		break

print(ans)

Submission status: Accepted

Solution code:
if 'AC' in input():print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
s=input()
if 'AC' in s:print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
print(' YNeos'['AC' in input()::2])

Submission status: Accepted

Solution code:
S = input()
for i in range(len(S)-1):
    if S[i:i+2] == "AC":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
s = str(input())
if "AC" in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s=input()
if "AC" in s:
    print("Yes") 
else:
    print("No")

Submission status: Accepted

Solution code:
import re

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

Submission status: Accepted

Solution code:
s = input()
if "AC" in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()
if (('AC') in S):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
S = list(input())
ans = -1
for i in range(1, len(S)):
    if S[i - 1] == "A" and S[i] == "C":
        print("Yes")
        ans = 1
        break
if ans == -1:
    print("No")

Submission status: Accepted

Solution code:
s = input()
if 'AC' in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
print("Yes" if input().find("AC")>=0 else "No")

Submission status: Accepted

Solution code:
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7

def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

S = input()

for i in range(4):
	if S[i:i+2] == 'AC':
		print('Yes')
		sys.exit()

print('No')

Submission status: Accepted

Solution code:
s=raw_input()
if 'AC' in s:
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

Solution code:
print(['No','Yes']['AC'in input()])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if "AC" in S:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
s=input()
a=0
for i in range(1,len(s)):
    if s[i-1]+s[i]=="AC":
        print("Yes")
        a=1
        break
if a==0:
    print("No")

Submission status: Accepted

Solution code:
goal=input()
if 'AC' in goal:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
for k in range(1,len(S)):
    if S[k-1:k+1] == "AC":
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

Solution code:
S = input().strip()
for k in range(len(S)-1):
  if S[k]+S[k+1] == 'AC':
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

Solution code:
print(("No", "Yes")[input().find("AC")>=0])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# CODE FESTIVAL 2017 qual C
# Problem A

if __name__ == '__main__':
    s = input()

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

Submission status: Accepted

Solution code:
s = input()
if "AC" in s: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
s = input().rstrip()
if 'AC' in s:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

s = arr_data[0][0]


print("Yes" if "AC" in s else "No")

Submission status: Accepted

Solution code:
a = input()
if 'AC' in a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=input()
if s.find("AC")==-1:print("No")
else:print("Yes")

Submission status: Accepted

Solution code:
if("AC" in input()):print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
def main():
    S = input()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=input()
T=S.replace("AC","")
if len(S)==len(T):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
print(['No','Yes'][min(input().find('AC'),0)+1])

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
print "Yes" if raw_input().find("AC")>=0 else "No"