Problem:


Score : 200 points

Problem Statement

You are given a string S. Each character of S is uppercase or lowercase English letter.
Determine if S satisfies all of the following conditions:

The initial character of S is an uppercase A.

There is exactly one occurrence of C between the third character from the beginning and the second to last character (inclusive).

All letters except the A and C mentioned above are lowercase.

Constraints

4 ≤ |S| ≤ 10 (|S| is the length of the string S.)

Each character of S is uppercase or lowercase English letter.

Input

Input is given from Standard Input in the following format:

S

Output

If S satisfies all of the conditions in the problem statement, print AC; otherwise, print WA.

Sample Input 1

AtCoder

Sample Output 1

AC

The first letter is A, the third letter is C and the remaining letters are all lowercase, so all the conditions are satisfied.

Sample Input 2

ACoder

Sample Output 2

WA

The second letter should not be C.

Sample Input 3

AcycliC

Sample Output 3

WA

The last letter should not be C, either.

Sample Input 4

AtCoCo

Sample Output 4

WA

There should not be two or more occurrences of C.

Sample Input 5

Atcoder

Sample Output 5

WA

The number of C should not be zero, either.



Sample input:
AtCoder


Sample output:
AC

Submission status: Wrong Answer

Solution code:
S = input()
flag = 0

if S[0] == 'A':
    flag += 1

for i in range(2,len(S)-1):
    if S[i] == 'C':
        flag += 1
        C = i

S.strip('A')
S.strip('C')

if not S.islower():
    if flag == 2:
        print('AC')
    else:
        print('WA')    
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S = input()
flag = 0

if S[0] == 'A':
    flag += 1

for i in range(2,len(S)-1):
    if S[i] == 'C':
        flag += 1
        C = i

for i in range(1,len(S)):
    if i != 'C':
        if not S[i].islower():
            flag *= 0

if flag == 2:
    print('AC')
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
import re
s = input()
print('AC' if re.match('^A[a-z]C[a-z]*', s) else 'WA')

Submission status: Wrong Answer

Solution code:
import re
s = input()
print('AC' if re.match('^A[a-z]C[a-z]+', s) else 'WA')

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != 'A':
  print('WA')
else:
  cnt = 0
  validate = True
  for i in range(2, len(S)-1):
    if S[i].islower():
      continue
    elif S[i] == 'C':
      cnt += 1
    else:
      validate = False
      break
  if cnt == 1 and validate and S[-1].islower():
    print('AC')
  else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != 'A':
  print('WA')
else:
  cnt = 0
  validate = True
  for i in range(2, len(S)-1):
    if S[i].islower():
      continue
    elif S[i].isupper() and S[i] == 'C':
      cnt += 1
    else:
      validate = False
      break
  if cnt == 1 and validate and S[-1].islower() and S[0] == 'A':
    print('AC')
  else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != 'A':
  print('WA')
else:
  cnt = 0
  validate = True
  for i in range(2, len(S)-1):
    if S[i].islower():
      continue
    elif S[i].isupper() and S[i] == 'C':
      cnt += 1
    else:
      validate = False
      break
  if cnt == 1 and validate and S[-1].islower():
    print('AC')
  else:
    print('WA')

Submission status: Wrong Answer

Solution code:
s = input()
if (s[0] == 'A') and (s[2:-1].count('C') == 1) and all([c.islower() for c in (s[1]+s[3:])]):
    print('AC')
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S = input()
count = 0
ans = "WA"
L = []
for k in range(len(S)):
    L.append(S[k])

if S[0] == "A":
    for i in range(2,len(S)-1):
        if S[i] == "C":
            count += 1
            c = i
    if count == 1:
        L[0] = "a"
        L[i] = "c"
        for j in range(len(L)):
            if L[j].islower:
                count += 1
        if count == len(L)+1:
            ans = "AC"
print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
count = 0
ans = "WA"
L = []
for k in range(len(S)):
    L.append(S[k])

if S[0] == "A":
    for i in range(2,len(S)-2):
        if S[i] == "C":
            count += 1
            c = i
    if count == 1:
        L[0] = "a"
        L[i] = "c"
        for j in range(len(L)):
            if L[j].islower:
                count += 1
        if count == len(L)+1:
            ans = "AC"
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

can = True
if s[0] != "A":
    can = False
else:
    cntc = 0
    for c in s[2:-2]:
        if c == "C":
            cntc += 1
    if cntc != 1:
        can = False
    else:
        cntup = 0
        for c in s:
            if c.isupper():
                cntup += 1
        if cntup != 2:
            can = False

if can:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
S = list(input())
is_approval = True
if 'C' != S[2] or 'A' != S[0]:
  is_approval = False
si = 0
for x in S:
  if si != 0 and si != 2 and x.isupper():
    is_approval = False
    break
  si += 1
print('AC' if is_approval else 'WA')

Submission status: Wrong Answer

Solution code:
S = list(input())
isApproval = True
si = 0
for x in S:
  if x.isupper():
    si += 1

if si > len(S)-2 or 'C' != S[2] or 'A' != S[0]:
  isApproval = False

print('AC' if isApproval else 'WA')

Submission status: Wrong Answer

Solution code:
S = list(input())
isApproval = True
if 'C' != S[2] or 'A' != S[0]:
  isApproval = False
si = 0
for x in S:
  if si != 0 and si != 2:
    if x.isupper():
      isApproval = False
      break
  si += 1
print('AC' if isApproval else 'WA')

Submission status: Wrong Answer

Solution code:
S = list(input())
isApproval = True
si = 0
for x in S:
  if 'C' != S[2]:
    isApproval = False
    break
  elif 'A' != S[0]:
    isApproval = False
    break
  elif si != 0 and si != 2:
    if x.islower():
      si += 1
      continue
    else:
      isApproval = False
      break
  si += 1
print('AC' if isApproval else 'WA')

Submission status: Wrong Answer

Solution code:
a = input()
b = False
for i in range(len(a)-1):
    if i == 0 and a[i] == "A":
        b = False
    elif not b and a[i] == "C" and 2 <= i <= len(a) - 1:
        b = not b
    elif b and (a[i] == "C" or a[i].isupper()):
        print("WA")
        exit()
    else:
        if a[i].isupper():
            print("WA")
            exit()
if b:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
a = input()
b = False
for i in range(len(a)-1):
    if i == 0 and a[i] == "A":
        b = False
    elif not b and a[i] == "C" and 2 <= i <= len(a) - 2:
        b = not b
    elif b and (a[i] == "C" or a[i].isupper()):
        print("WA")
        exit()
    else:
        if a[i].isupper() or a[i] == "C":
            print("WA")
            exit()
if b:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
a = input()
b = False
for i in range(len(a)-1):
    if i == 0 and a[i] == "A":
        b = False
    elif not b and a[i] == "C" and 2 <= i <= len(a) - 2:
        b = not b
    elif b and (a[i] == "C" or a[i].isupper()):
        print("WA")
        exit()
    else:
        if a[i].isupper():
            print("WA")
            exit()
if b:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
S = input()
o_moji = 0
C = 0
if S[0]=="A":
    for i in range(1, len(S)-1):
        if S[i].isupper():
            if S[i]!="C":
                o_moji += 1
            else:
                if i>1:
                    C += 1
                else:
                    o_moji += 1
    if o_moji==0 and C==1:
        print("AC")
    else:
        print("WA")
else:
      print("WA")

Submission status: Wrong Answer

Solution code:
S = input()
o_moji = 0
C = 0
if S[0]=="A":
    for i in range(1, len(S)):
        if S[i].isupper():
            if S[i]!="C":
                o_moji += 1
            else:
                C += 1
    if o_moji==0 and C==1:
        print("AC")
    else:
        print("WA")
else:
      print("WA")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
#ABC104 B

alpha = "BDEFGHIJKLMNOPQRSTUVWXYZ"
s = list(input())
if s[0] != 'A':
    print('WA')
    quit()
if s[2:-1].count('C')!= 1:
    print('WA')
    quit()
for i in range(len(s)):
    if s[i] in alpha:
        print('WA')
        quit()
    elif s[i] == 'A':
        if i != 0:
            print('WA')
            quit()
    elif s[i] == 'C':
        if 0 <= i < 3 or i == len(s)-1:
            print('WA')
            quit()
print('AC')

Submission status: Wrong Answer

Solution code:
a = input()
if a[0]=="A" and a[2:-2].count("C")==1 and a.replace("A","").replace("C","").islower:
  print("AC")
else:
  print("WA")

Submission status: Wrong Answer

Solution code:
s=input()
ss=s.replace("A","a")
ss=ss.replace("C","c")
print(s[2:len(s)-2])
if s[0]=="A" and s[2:len(s)-1].count("C")==1 and ss.islower():
    print("AC")
else :
    print("WA")

Submission status: Wrong Answer

Solution code:
s=input()
ss=s.replace("A","a")
ss=ss.replace("C","c")
print(s[2:len(s)-2])
if s[0]=="A" and s[2:len(s)-1].count("c")==1 and ss.islower()==True:
    print("AC")
else :
    print("WA")

Submission status: Wrong Answer

Solution code:
s=input()
ss=s.replace("A","a")
ss=ss.replace("C","c")
print(s[2:len(s)-2])
if s[0]=="A" and s[2:len(s)-1].count("c")==1 and ss.islower():
    print("AC")
else :
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()
flag = True
if(s[0] != 'A'):
    flag = False
if(s[-1] == 'C' or s[1] == 'C'):
    flag = False
if(s.count('C') == 0 or s.count('C') >= 2):
    flag = False
if (s.count('A') == 0 or s.count('A') >= 2):
    flag = False
for i in s:
    if(i != 'A' or i != 'C' or i.isupper()):
        flag = False
if(flag):
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()
flag = True
if(s[0] != 'A'):
    flag = False
if(s[-1] == 'C' or s[1] == 'C'):
    flag = False
if(s.count('C') == 0 or s.count('C') >= 2):
    flag = False
if (s.count('A') == 0 or s.count('A') >= 2):
    flag = False
for i in s:
    if(i != 'A' or i != 'C' or s - 'A' >= 0):
        flag = False
if(flag):
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()
flag = True
if(s[0] != 'A'):
    flag = False
if(s[-1] == 'C' or s[1] == 'C'):
    flag = False
if(s.count('C') == 0 or s.count('C') >= 2):
    flag = False
if(flag):
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = list(input())
flag = True
if s[0] != "A":
    flag = False
c = False
if s[1].islower():
    flag = False
for i in range(len(s) - 3):
    if s[i + 2] == "C":
        if c:
            flag = False
        c = True
    else:
        if s[i + 2].islower():
            flag = False

if s[-1].islower():
    flag = False


if flag and c:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = list(input())
flag = True
if s[0] != "A":
    flag = False
c = False
for i in range(len(s) - 3):
    if s[i + 2] == "C":
        if c:
            flag = False
        c = True

if flag and c:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = str(input())

def ac(s):
    if s[0] != "A":
        return print("WA")
    if s[2:-2].count("C") != 1:
        return print("WA")
    if s.count("C") != 1:
        return print("WA")
    if s.count("A") != 1:
        return print("WA")
    s = s.replace("A", "a")
    s = s.replace("C", "c")
    if s.lower() != s:
        return print("WA")
    else:
        return print("AC")

ac(s)

Submission status: Wrong Answer

Solution code:
s = str(input())

def ac(s):
    if s[0] != "A":
        return print("WA")
    if s[2:-2].count("C") != 1:
        return print("WA")
    if s.count("C") != 1:
        return print("WA")
    s = s.replace("A", "a")
    s = s.replace("C", "c")
    if s.lower() != s:
        return print("WA")
    else:
        return print("AC")

ac(s)

Submission status: Wrong Answer

Solution code:
s = str(input())

def ac(s):
    if s[0] != "A":
        return print("WA")
    if s[2:-2].count("C") != 1:
        return print("WA")
    s = s.replace("A", "a")
    s = s.replace("C", "c")
    if s.lower() != s:
        return print("WA")
    else:
        return print("AC")

ac(s)

Submission status: Wrong Answer

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

res='WA'
cnt=0
cnt2=0

if s[0]=='A':
	for i in range(1,n-1):
		if s[i]=='C':
			cnt+=1
	for i in range(1,n):
		if s[i].isupper() and s[i]!='C':
			cnt2+=1
	if cnt==1 and cnt2==0:
		res='AC'
        
print(res)

Submission status: Wrong Answer

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

res='WA'
cnt=0

if s[0]=='A':
	for i in range(2,n-1):
		if s[i]=='C':
			cnt+=1
	if cnt==1:
		res='AC'

print(res)

Submission status: Wrong Answer

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

res='WA'

if s[0]=='A':
	for i in range(2,n-1):
		if s[i]=='C':
			res='AC'

print(res)

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] == 'A':
    s = s[1:]
    if s[1:-2].count('C') == 1:
        for char in s:
            if char != 'C' and char == char.upper():
                break
        else:
            print('AC')
            exit()
print('WA')

Submission status: Wrong Answer

Solution code:
s = input()

if s[0] == 'A' and s[2:-1].count('C') == 1:
    for x in list(s):
        if x == 'A' or x == 'C' or x.islower():
            print('AC')
            break
        else:
            print('WA')
            break
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
s = input()

if len(s) >= 4 and len(s) <= 10 and s[0]=="A" and s[2:-1].count("C")==1:
    try:
        ss = list(s[2:-1])
        ss.remove("C")
        ss = s[1] + ss + s[-1]
        if ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if len(s) >= 4 and len(s) <= 10 and s[0]=="A" and s[2:-1].count("C")==1:
    try:
        ss = list(s[2:-1])
        ss.remove("C")
        ss += s[-1]
        if ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
string = input()

strlist = list(string)
if strlist[0] != 'A':
	print('WA')
else:
	if 'C' not in strlist[2:-1]:
		print('WA')
	else:
		countA = strlist.count('A')
		countC = strlist.count('C')
		if countA == 1 or countC == 1:
			print('AC')
		else:
			print('WA')

Submission status: Wrong Answer

Solution code:
string = input()

strlist = list(string)

if strlist[0] != 'A':
	print('WA')
else:
	if 'C' not in strlist[2:-2]:
		print('WA')
	else:
		countA = strlist.count('A')
		countC = strlist.count('C')
		if countA == 1 or countC == 1:
			print('AC')
		else:
			print('WA')

Submission status: Wrong Answer

Solution code:
line = input()
WA_flag = 0
C_flag = 0
check_point = 0

for cnt, elm in enumerate(line):
    if cnt == 0:
        if elm != "A":
            WA_flag += 1
            #print("A_wrong: " + elm)
    if cnt > 1 and cnt < (len(line) - 2):
        if elm =="C":
            C_flag += 1
            check_point = cnt

if C_flag != 1:
    WA_flag += 1
    #print("C_num wrong: " + elm)
else:
    for cnt, elm in enumerate(line):
        if cnt != 0 and cnt != check_point:
            if elm.isupper():
                WA_flag += 1
                #print("upper_wrong: " + elm)

if WA_flag != 0:
    print("WA")
else:
    print("AC")

Submission status: Wrong Answer

Solution code:
line = input()
WA_flag = 0
C_flag = 0
check_point = 0

for cnt, elm in enumerate(line):
    if cnt == 0:
        if elm != "A":
            WA_flag += 1
    if cnt > 1 and cnt < (len(line) - 2):
        if elm =="C":
            C_flag += 1
            check_point = cnt

if C_flag != 1:
    WA_flag += 1
else:
    for cnt, elm in enumerate(line):
        if cnt != 1 and cnt != check_point:
            if elm.isupper():
                WA_flag += 1

if WA_flag != 0:
    print("WA")
else:
    print("AC")

Submission status: Wrong Answer

Solution code:
s = input()

if len(s) >= 4 and len(s) <= 10 and s[0]=="A" and "C" in s[2:-1]:
    try:
        ss = list(s[2:-1])
        ss.remove("C")
        ss += s[-1]
        if "C" not in ss[:-1] and ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if s[0]=="A" and "C" in s[2:-1]:
    try:
        ss = list(s[2:-1])
        ss.remove("C")
        ss += s[-1]
        if "C" not in ss[:-1] and ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if s[0]=="A" and "C" in s[1:-1]:
    try:
        ss = list(s[1:-1])
        ss.remove("C")
        ss += s[-1]
        if "C" not in ss[:-1] and ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if s[0]=="A" and "C" in s[2:-1]:
    try:
        ss = list(s[2:-2])
        ss.remove("C")
        ss += s[-1]
        if ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if s[0]=="A" and "C" in s[2:-1]:
    try:
        ss = s[2:-2]
        ss.remove("C")
        ss += s[-1]
        if ''.join(ss).islower():
            print("AC")
        else:
            print("WA")
    except:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = list(input())

if s[0] != "A":
    print("WA")
    exit()
if s[2:-2].count("C") != 1:
    print("WA")
    exit()
for t in s:
    if t.isupper() and t != "A" and t != "C":
        print("WA")
        exit()

print("AC")

Submission status: Wrong Answer

Solution code:
s = list(input())

if s[0] != "A":
    print("WA")
    exit()
if not s[2:-2].count("C" == 1):
    print("WA")
    exit()
for t in s:
    if t.isupper() and t != "A" and t != "C":
        print("WA")
        exit()

print("AC")

Submission status: Wrong Answer

Solution code:
s = list(input())

if s[0] != "A":
    print("WA")
    exit()
if not s[2:-2].count("c" == 1):
    print("WA")
    exit()
for t in s:
    if t.isupper() and t != "A" and t != "C":
        print("WA")
        exit()

print("AC")

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] == 'A' and s[2:-1].count('C') == 1:
    j = s[1] + s[2:-1].strip('C') + s[-1]
    if j.islower():
        print('AC')
        exit()
print('WA')

Submission status: Wrong Answer

Solution code:
S = input()
flag = True
if S[0] != "A":
    flag = False
s_n = S[2:-1]
c_c = 0
ci = 0
for i,si in enumerate(s_n):
    if si == "C":
        ci = i+2
        c_c += 1

if c_c != 1:
    flag = False

for i,si in enumerate(s_n):
    if i == 0 or i == ci:
        continue
    if not si.islower():
        flag = False

print("AC") if flag else print("WA")

Submission status: Wrong Answer

Solution code:
s = input()

if not s[0] == "A":
    print('WA')
    exit()

clen = s[2:-1].count("C")
if clen > 1:
    print('WA')
    exit()

count=0
for ch in s:
    if not ('a' <= ch <= 'z'):
        count += 1
print('WA' if count-clen-1!=0 else 'AC')

Submission status: Wrong Answer

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

S = input()
c=0
if S[0]=='A' and 'C' in S[2:-2]:
    for i in range(len(S)):
        if S[i].isupper():
            c+=1
    if c==2:
        print("AC")
    else:
        print("WA")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
n=list(input())
count=0
if n[0]=='A' and n[2:-1].count('C')==1:
    del n[0]
    n.remove('C')
    print(n)
    for i in range(len(n)):
        if n[i].islower()==1:
            count+=1
    if count==len(n):
        print('AC')
    else:
        print('WA')
    
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S = input()

WA = "WA"

if S[0] != 'A':
    print(WA)
    print(1)
    exit()

if S[1].isupper():
    print(WA)
    exit()

C_cnt = 0
for i in range(2, len(S) - 1):
    if S[i] == 'C':
        if C_cnt == 0:
            C_cnt += 1
            continue
        else:
            print(WA)
            exit()
    else:
        if S[i].isupper():
            print(WA)
            exit()

if C_cnt == 0:
    print(WA)
    exit()

if S[len(S) - 1].isupper():
    print(WA)
    exit()

print("AC")

Submission status: Wrong Answer

Solution code:
s = input()

if s[0] == 'A' and s[2:-2].count('C') == 1 and sum(x.isupper() for x in s) == 2:
  print('AC')
else:
  print('WA')

Submission status: Wrong Answer

Solution code:
S = input()

alphabets = set(chr(ord('a')+x) for x in range(26))

bl1 = (S[0] == 'A')
bl2 = (S[2:-1].find('C') >= 0)
bl3 = (set(S) - set('AC') <= alphabets)

answer = 'AC' if bl1 and bl2 and bl3 else 'WA'
print(answer)

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"
if n[0] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

for i in carea:
        if i == "A":
                result = "WA"
                print(result)
                quit()

if n[-1] == "C" or n[-1] == "A":
        result = "WA"
        print(result)
        quit()

if n[1] == "C" or n[1] == "A":
        result = "WA"
        print(result)
        quit()


for i in n:
        if i.isupper() == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()
                if i == "T":
                        result = "WA"
                        print(result)
                        quit()
print(result)

Submission status: Wrong Answer

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

ans = 'AC'

if S[0] != 'A':
    ans = 'WA'

cnt = 0
for i in range(2,n-1):
    if S[i] == 'C':
        cnt += 1
    elif S[i] >= 'a' and S[i] <= 'z':
        continue
    else:
        ans = 'WA'
if cnt != 1:
    ans = 'WA'

print(ans)

Submission status: Wrong Answer

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

ans = 'AC'

if S[0] != 'A':
    ans = 'WA'

cnt = 0
for i in range(2,n-1):
    if S[i] == 'C':
        cnt += 1
    elif S[i] >= 'a' or S[i] <= 'z':
        continue
    else:
        ans = 'WA'
if cnt != 1:
    ans = 'WA'

print(ans)

Submission status: Wrong Answer

Solution code:
s = list(input())
if s[0] == "A" and s[2:-2].count("C") == 1:
    s.remove("A")
    s.remove("C")
    for i in range(len(s)):
        if s[i].islower():
            continue
        else:
            print("WA")
            exit()
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = list(input())
if s[0] == "A" and s[2:-2].count("C") == 1:
    s.remove("A")
    s.remove("C")
    for i in range(len(s)):
        if s[i].islower:
            continue
        else:
            print("WA")
            exit()
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
s = list(input())
if s[0] == "A" and s[2:-2].count("C") == 1:
    s.remove("A")
    s.remove("C")
    for i in range(len(s)):
        if s[i].islower:
            continue
        else:
            print("WA")
            exit()
    print("AC")

Submission status: Wrong Answer

Solution code:
s = list(input())
if s[0] == "A" and s[2:-2].count("C") == 1:
    s.remove("A")
    s.remove("C")
    for i in range(len(s)):
        if s[i].islower:
            continue
        else:
            print("No")
            exit()
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"
if n[0] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

for i in carea:
        if i == "A":
                result = "WA"
                print(result)
                quit()

if n[-1] == "C" or n[-1] == "A":
        result = "WA"
        print(result)
        quit()

if n[1] == "C" or n[1] == "A":
        result = "WA"
        print(result)
        quit()


for i in n:
        if i.isupper == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()

print(result)

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"
if n[0:1] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

if n[-1] == "C" or n[-1] == "A":
        result = "WA"
        print(result)
        quit()

if n[1] == "C" or n[1] == "A":
        result = "WA"
        print(result)
        quit()


for i in n:
        if i.isupper == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()

print(result)

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"
if n[0:1] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

if n[-1] == "C":
        result = "WA"
        print(result)
        quit()

if n[1] == "C":
        result = "WA"
        print(result)
        quit()


for i in n:
        if i.isupper == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()

print(result)

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"

if n[0:1] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

if n[-1] == "C":
        result = "WA"
        print(result)
        quit()

for i in n:
        if i.isupper == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()

print(result)

Submission status: Wrong Answer

Solution code:
n = input()

result = "AC"

if n[0:1] != "A":
        result = "WA"
        print(result)
        quit()

carea = n[2:-1]
ccount = 0
for i in carea:
        if i == "C":
                ccount += 1
if ccount >= 2 or ccount == 0:
        result = "WA"
        print(result)
        quit()

for i in n:
        if i.isupper == True:
                if i != "A" or i != "C":
                        result = "WA"
                        print(result)
                        quit()

print(result)

Submission status: Wrong Answer

Solution code:
S = input()
flg = 0
if S[0] == 'A':
    flg += 1
if S[1].isupper():
    flg += 1000
for i in range(2, len(S)-1):
    if S[i] == 'C':
        flg += 10
    elif S[i].isupper():
        flg += 1000
if S[-1].isupper():
    flg += 1000
print(flg)
if flg == 11:
    print('AC')
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
# INPUT
a = input()


# PROCESS
answer = ""

if(a[0] != "A"):
  answer = "WA"
else:
  a_list = list(a)
  b_list = a[2:-1]
  if (not b_list.count("C") == 1):
    answer = "WA"
  else:
    C_index = a.find("C")
    a_list.pop(C_index)
    a_join = "".join(a_list)
    if(a_join.islower()):
      answer = "AC"
    else:
      answer = "WA"

# OUTPUT
print(answer)

Submission status: Wrong Answer

Solution code:
# INPUT
a = input()


# PROCESS
answer = ""

if(a[0] != "A"):
  answer = "WA"
else:
  a_list = list(a)
  b_list = a[2:-1]
  if (b_list.count("C") == 1):
    answer = "AC"
  else:
    answer = "WA"

# OUTPUT
print(answer)

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] != "A":
  print("No")
  exit()
if  s.find("C") < 2 or s.find("C") == len(s)-1:
  print("No")
  exit()
if s.count("C") != 1:
  print("No")
  exit()
s = s.replace("A","",1)
s = s.replace("C","")
if s != s.lower():
  print("No")
  exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
s = list(input())

a = [chr(i) for i in range(97, 97+26)]
A = [chr(i) for i in range(65, 65+26)]

flg = "AC"

if not s[0] == "A":
    flg = "WA"

if not s[2:-2].count("C") ==1:
    flg = "WA"

b = set(s)-set(["A","C"])

if not b<=set(a):
    flg = "WA"

print(flg)

Submission status: Wrong Answer

Solution code:
import re
S = input()
if not S[0] == 'A':
    print('WA')
elif len(S) > 4 and S[2:-1].count('C') != 1:
    print('WA2')
elif len(S) == 4 and S[2:].count('C') != 1:
    print('WA')
elif len(re.findall('[A-Z]', S)) != 2:
    print('WA')
else:
    print('AC')

Submission status: Wrong Answer

Solution code:
import re
S = input()
if not S[0] == 'A':
    print('WA')
elif len(S) > 4 and S[2:-2].count('C') != 1:
    print('WA')
elif len(S) == 4 and S[2:].count('C') != 1:
    print('WA')
elif len(re.findall('[A-Z]', S)) != 2:
    print('WA')
else:
    print('AC')

Submission status: Wrong Answer

Solution code:
import re
S = input()
if not S[0] == 'A':
    print('WA')
elif S[2:-1].count('C') != 1:
    print('1WA')
elif len(re.findall('[A-Z]', S)) != 2:
    print('WA')
else:
    print('AC')

Submission status: Wrong Answer

Solution code:
import re
S = input()
if not S[0] == 'A':
    print('WA')
elif S[1:-1].count('C') != 1:
    print('1WA')
elif len(re.findall('[A-Z]', S)) != 2:
    print('WA')
else:
    print('AC')

Submission status: Wrong Answer

Solution code:
import re
S = input()
if not S[0] == 'A':
    print('WA')
elif S[2:-2].count('C') != 1:
    print('WA')
elif len(re.findall('[A-Z]', S)) != 2:
    print('WA')
else:
    print('AC')

Submission status: Wrong Answer

Solution code:
# 2019/06/07
# AtCoder Beginner Contest 104 - B

# Input
s = input()

# Check 1-2
if s[0] == "A" and s[1].islower() == True:
    ccnt = 0
    bflg = False
    for i in range(2, len(s)):
        if s[i] == "C":
            ccnt += 1
        elif s[i].islower() == False:
            bflg = True
            break
        if bflg == False and ccnt == 1:
            ans = "AC"
        else:
            ans = "WA"
else:
    ans = "WA"

# Output
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

flg = "AC"

if s[0] != "A":
    flg ="WA"

if {"C"}  <= set(list(s)[2:-1]):
    pass
else:
    flg ="WA"
    

    
a = [chr(i) for i in range(97, 97+26)]
a.append("A")
a.append("C")
if  set(list(s)) <= set(a):
    pass
else:
    flg == "WA"

if list(s).count("A") != 1:
    flg ="WA"

if list(s).count("C") != 1:
    flg ="WA"

print(flg)

Submission status: Wrong Answer

Solution code:
s = input()

flg = "AC"

if s[0] != "A":
    flg ="WA"

if {"C"}  <= set(list(s)[2:-1]):
    pass
else:
    flg ="WA"
    
if list(s)[2:-1].count("C") !=1:
    flg = "WA" 
    
a = [chr(i) for i in range(97, 97+26)]
a.append("A")
a.append("C")
if  set(list(s)) <= set(a):
    pass
else:
    flg == "WA"

if list(s).count("A") != 1:
    flg ="WA"
print(flg)