Submission #3423676


Source Code Expand

s = input()
ans = 0
if s[0] == 'A':
    ans += 1
cnum = 0
for i in range(2,len(s)):
    if s[i] == 'C':
        cnum += 1
if cnum == 1:
    ans += 1
hantei = 0
for i in range(len(s)):
    if s[i].islower():
        pass
    else:
        hantei += 1
if hantei == 2:
    ans += 1
if ans == 3:
    print('AC')
else:
    print('WA')

Submission Info

Submission Time
Task B - AcCepted
User Ken_Sumi1019
Language Python (3.4.3)
Score 0
Code Size 350 Byte
Status WA
Exec Time 17 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 4
WA × 1
AC × 15
WA × 1
Set Name Test Cases
Sample a01, a02, a03, a04, a05
All a01, a02, a03, a04, a05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16
Case Name Status Exec Time Memory
a01 AC 17 ms 2940 KB
a02 AC 17 ms 3060 KB
a03 WA 17 ms 3060 KB
a04 AC 17 ms 3060 KB
a05 AC 17 ms 3064 KB
b06 AC 17 ms 2940 KB
b07 AC 17 ms 3064 KB
b08 AC 17 ms 2940 KB
b09 AC 17 ms 3064 KB
b10 AC 17 ms 3060 KB
b11 AC 17 ms 3064 KB
b12 AC 17 ms 3060 KB
b13 AC 17 ms 3064 KB
b14 AC 17 ms 3064 KB
b15 AC 17 ms 3064 KB
b16 AC 17 ms 3064 KB