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 = 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]=="A" and S[i+1]=="C":
    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:
#  --*-coding:utf-8-*--

def f(s):
    return 'Yes' if (s.find('AC') != -1) else 'No'

def test():
    assert f('BACD') == 'Yes'
    assert f('ABCD') == 'No'
    assert f('CABD') == 'No'
    assert f('ACACA') == 'Yes'
    assert f('XX') == 'No'


def main():
    print(f(input()))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x=input()
y='AC'


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
if __name__ == '__main__':
    S = raw_input()
    if 'AC' in S:
        print 'Yes'
    else:
        print 'No'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
if __name__ == '__main__':
    S = raw_input()
    if 'AC' in S:
        print 'Yes'
    else:
        print 'No'

Submission status: Accepted

Solution code:
# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ！！
if __name__ == '__main__':
    S = raw_input()
    flg = True
    for index in range(len(S) - 1):
        if S[index]+S[index+1] == 'AC':
            print 'Yes'
            flg = False
            break
    if flg:
        print 'No'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
f = False 
for i in range(len(S)-1):
    if S[i] == 'A'and S[i+1]=='C':
        f = True
        print("Yes")
        break;


if not f: 
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
f=False
for i in range(len(s)-1):
    if s[i]=='A' and s[i+1]=='C':
        f=True
        print('Yes')
        break;
        
if not f:
    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()
import re
if re.search("AC",s):
    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:
s = input()
if 'AC' in s: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
s=raw_input()
l=len(s)
ok=False
for i in range(0,l-1):
    if(s[i]=='A' and s[i+1]=='C'):
        ok=True
if(ok==True):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import sys
S = input()
for tmp in range(len(S)-1):
    if S[tmp:tmp+2] == 'AC':
        print("Yes")
        sys.exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = float("inf")


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 文字列の入力
s = raw_input()
if 'AC' in s:
    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:
a = input()
if "AC" in a:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
print "Yes" if raw_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:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=list(raw_input())

ch=0

for i in a:
    if ch==0 and i=="A":
        ch=1
    elif ch==1:
        if i=="C":
            ch=2
            break
        else:
            ch=0

if ch==2:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
a = stdin.readline().strip()
ans = 'No'
if 'AC' in a:
 ans = 'Yes'
print ans

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s=input()

try:
    res=s.index("AC")
except:
    res=-1

if res>=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
words = input()
if 'AC' in words:
    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:
a = input()
list(a)
for i in range(len(a)):
    if a[i] != "A" and i != len(a)-1 :
        continue
    elif a[i] == "A" :
        if a[i+1] == "C" :
            print("Yes")
            break
    else :
        print("No")

Submission status: Accepted

Solution code:
S = input("")
Anum = S.find("A")
Cnum = S.find("C")

if Cnum == Anum + 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

S = input()
func(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

x = 'No'
if S == 'AC':
    x = 'Yes'
    
for i in range(len(S)-2):
    s = S[i:i+2]
    if s == 'AC':
        x = 'Yes'
        break

print(x)

Submission status: Accepted

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

"""code-fes-2017-qual-c-a"""


import sys
import re


def main():
    """Main function."""
    S = input()

    print("Yes") if re.search("AC", S) else print("No")


if __name__ == '__main__':
    sys.exit(main())

Submission status: Accepted

Solution code:
S = str(input())
Slist = list(S)
flag = False
for i in range(len(Slist)-1):
    st = Slist[i] + Slist[i+1]
    if(st == "AC" and flag == False):
        print('Yes')
        flag = True
if(flag == False):
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	S = input()
	word = "AC"

	if word in S:
		print("Yes")
	else:
		print("No")
if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    S = input()
    if S.count("AC") > 0:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
print("Yes" * ("AC" in S) + "No" * ("AC" not in S))

Submission status: Accepted

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

s = list(input())

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

print(output)

Submission status: Accepted

Solution code:
# coding: utf-8

data = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = raw_input()

def check():
    for i in range(len(S) - 1):
        if S[i:i+2] == 'AC':
            return True
    return False

print 'Yes' if check() else 'No'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# !/usr/bin/env python
# vim: set fileencoding=utf-8 :

"""
#
# Author:   Noname
# URL:      https://github.com/pettan0818
# License:  MIT License
# Created: 日 10/22 21:00:20 2017

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



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def A():
    S = input()
    for i in range(len(S)):
        if S[i:i+2] ==  "AC":
            return 1

    return 0

if __name__ == '__main__':
    result = A()
    if result == 1:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
s = input()

if s.find("AC") >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S=list(raw_input())
#print S

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

print ans

Submission status: Accepted

Solution code:
a=input().rstrip()
l=len(a)
flag=False
for i in range(l-1):
    if(a[i:i+2]=="AC"):
        flag=True

print(("No" if flag==False else "Yes"),flush=True)

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:
print("Yes" if input().count("AC")>0 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def main():
    s = input()
    i = "AC" in s
    if i:
        print("Yes")
    else:
        print("No")
    # print(123)
    # b = [int(a) for a in input().split(" ")]
    # print(b)
    # [input() for a in range(3)]


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct  9 22:12:40 2017

@author: kitagenbakurou
"""
import numpy as np
import copy

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 = input()
length = len(s)

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

Submission status: Accepted

Solution code:
def is_contained_ac(s):
    for i in range(len(s)-1):
        if s[i:i+2] == "AC":
            return True
    return False

s = input()
if is_contained_ac(s): 
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# A
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = raw_input()

status = 0

for i in range(len(s)-1):
    if s[i:i+2] == "AC":
        status = 1

if status == 1:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
inputs = input()

x = list(inputs)

flag = False
for i in range(len(x) - 1):
    if x[i] == 'A' and x[i+1] == 'C':
        flag = True

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
  main()

Submission status: Accepted

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

s = input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def inpl(): return tuple(map(int, input().split()))

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

Submission status: Accepted

Solution code:
#! usr/bin/env python3

# A :

S = input()

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

else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a= input()
if a[0:2]=="AC" or a[1:3]=="AC" or a[2:4]=="AC" or a[3:5]=="AC":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
S = input()
try:
  if S.index('AC') != -1:
      print('Yes')
except:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
import sys

print('Yes' if 'AC' in sys.stdin.readline() else 'No')

Submission status: Accepted

Solution code:
s = input()		# 文字列の入力  abcdefg...

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()
count = 0
for i in range(len(s)-1):
    if s[i:i+2] == "AC":
        count = 1
        break
if count == 1:
    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:
use = input()
if "AC" in use:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#import string,itertools,fractions,heapq,re,array,bisect
#from math import *
#from collections import Counter
def rl(s): return xrange(len(s))

import sys
stdin = sys.stdin
def tokens(): return stdin.readline().strip().split()
def ints(): return map(int, tokens())
def int1(): return int( stdin.readline().strip() )

INF = 2147483647


S = tokens()[0]

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

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))
def plis(a): return " ".join(list(map(str, a)))

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

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

Submission status: Accepted

Solution code:
S = input()

flag = False
for i in range(len(S)-1):
    if S[i] == "A" and S[i+1] == "C":
        flag = True
        break

if flag:
    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:
a = raw_input()
if "AC" in a:
 print "Yes"
else:
 print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = raw_input()

if "AC" in a:
    print "Yes"

else:
    print "No"

Submission status: Accepted

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



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

if __name__ == "__main__": main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = raw_input()
def test():
    for i in range(len(S)-1):
        if S[i:i+2] == "AC":
            return 1
    return 0

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

Submission status: Accepted

Solution code:
# coding: utf-8
S = raw_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()
if s.count("AC")>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

def main():
    s = input().strip()
    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:
if 'AC' in input():
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
value = input()
print("Yes" if value.count("AC") != 0 else "No")

Submission status: Accepted

Solution code:
inp=raw_input()
if "AC" in inp:print "Yes"
else:print "No"

Submission status: Accepted

Solution code:
s = input()
ans = "No"
for i in range(0,len(s)-1):
    if s[i]+s[i+1] == "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")
        break
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    s = S()
    l = len(s)
    for i in range(l-1):
        if s[i:i+2] == 'AC':
            return 'Yes'

    return 'No'


print(main())

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 'AC' in s:
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
INF = 999999999999999999L
EPS = 1e-12

def read():
    return raw_input().strip()

def read_ints():
    return map(int,read().split())

s = read()
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:
# A - Can you get AC?

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

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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import re
import string

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:
#!/usr/bin/python3
# Copyright (C) 2017 Sayutin Dmitry.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; version 3
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.

def main():
    s = input().strip()
    print("Yes" if s.find("AC") != -1 else "No")

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main(){
  string S;
  cin>>S;
  for(int i=0;i<S.length()-1;i++){
    if(S.at(i)=='A' && S.at(i+1)=='C'){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
print("YES" if "AC" in input() else "NO)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()

for i in range(len(S)):
  if S[i] == 'A' ans S[i+1]:
    print('Yes')
    exit()
print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if ans ==1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(if 'AC' in input())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#Can you get AC?
S = input()
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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string str;
    cin >> str;
    if (str.find('A') == (str.rfind('C') + 1))
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    
    return 0;
}

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
 
int main(){
    string S;
    cin >> S;
    
    for(int i=0;i<S.size()-1;i++){
        if(S.substr(i,2) == "AC"){
            cout << "Yes" << endl;
            return 0;
        }
    }
    
    cout << "No" << endl;

}

Submission status: Runtime Error

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: Runtime Error

Solution code:
ソースコード 

Copy
Copy
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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
print(3**int(input())-2**sum(~int(s)%2for s in input().split()))

Submission status: Runtime Error

Solution code:
print(3**int(input())-2**sum(~int(s)%2 for s in input().split()))

Submission status: Runtime Error

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

Submission status: Runtime Error

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