Submission #494000


Source Code Expand

S = raw_input()

def Count(S):
    a = 0
    b = 0
    c = 0
    d = 0
    e = 0
    f = 0

    for moji in S:
        if moji.count('A'):
            a += 1
        elif moji.count('B'):
            b += 1
        elif moji.count('C'):
            c += 1
        elif moji.count('D'):
            d += 1
        elif moji.count('E'):
            e += 1
        else:
            f += 1

    print a, b, c, d, e, f

Count(S)

Submission Info

Submission Time
Task B - 文字数カウント
User uma3
Language Python (2.7.3)
Score 100
Code Size 452 Byte
Status AC
Exec Time 137 ms
Memory 6336 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 19
Set Name Test Cases
Sample example_0.txt, example_1.txt, example_2.txt
All allone_0.txt, allone_1.txt, example_0.txt, example_1.txt, example_2.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, example_0.txt, example_1.txt, example_2.txt
Case Name Status Exec Time Memory
allone_0.txt AC 137 ms 6208 KiB
allone_1.txt AC 98 ms 6148 KiB
example_0.txt AC 99 ms 6208 KiB
example_1.txt AC 95 ms 6276 KiB
example_2.txt AC 91 ms 6208 KiB
handmade_0.txt AC 94 ms 6248 KiB
handmade_1.txt AC 96 ms 6248 KiB
handmade_2.txt AC 96 ms 6204 KiB
maxrand_0.txt AC 95 ms 6200 KiB
maxrand_1.txt AC 97 ms 6204 KiB
maxrand_2.txt AC 100 ms 6328 KiB
random_0.txt AC 95 ms 6320 KiB
random_1.txt AC 94 ms 6208 KiB
random_2.txt AC 94 ms 6332 KiB
random_3.txt AC 93 ms 6336 KiB
random_4.txt AC 96 ms 6208 KiB