AtCoder Regular Contest 011

Submission #638105

Source codeソースコード

d={'b':1,'c':1, 'd':2,'w':2, 't':3,'j':3, 'f':4,'q':4, 'l':5,'v':5, 's':6,'x':6, 'p':7,'m':7, 'h':8,'k':8, 'n':9, 'g':9, 'z':0, 'r':0}

n=int(input())
s=input().lower().split()

ans=[]
for t in s:
    p=""

    for i in range(len(t)):
        if t[i] in d:
            p+=str(d[t[i]])

    if len(p)>0:
        ans.append(p)

for i in range(len(ans)):
    if i>0:
        print(" ",end="")
    print(ans[i],end="")
print()

Submission

Task問題 B - ルイス・キャロルの記憶術
User nameユーザ名 imulan
Created time投稿日時
Language言語 Python3 (3.2.3)
Status状態 AC
Score得点 100
Source lengthソースコード長 444 Byte
File nameファイル名
Exec time実行時間 164 ms
Memory usageメモリ使用量 8712 KB

Test case

Set

Set name Score得点 / Max score Cases
All 100 / 100 00_sample_01.txt,00_sample_02.txt,00_sample_03.txt,00_sample_04.txt,00_sample_05.txt,01_rand_00.txt,01_rand_01.txt,01_rand_02.txt,01_rand_03.txt,01_rand_04.txt,01_rand_05.txt,01_rand_06.txt,01_rand_07.txt,01_rand_08.txt,01_rand_09.txt,01_rand_10.txt,01_rand_11.txt,01_rand_12.txt,01_rand_13.txt,01_rand_14.txt,01_rand_15.txt,01_rand_16.txt,01_rand_17.txt,01_rand_18.txt,01_rand_19.txt,10_min_01.txt,10_min_02.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt AC 164 ms 8344 KB
00_sample_02.txt AC 126 ms 8364 KB
00_sample_03.txt AC 126 ms 8368 KB
00_sample_04.txt AC 130 ms 8368 KB
00_sample_05.txt AC 125 ms 8408 KB
01_rand_00.txt AC 138 ms 8712 KB
01_rand_01.txt AC 143 ms 8532 KB
01_rand_02.txt AC 134 ms 8540 KB
01_rand_03.txt AC 134 ms 8496 KB
01_rand_04.txt AC 137 ms 8472 KB
01_rand_05.txt AC 129 ms 8360 KB
01_rand_06.txt AC 130 ms 8368 KB
01_rand_07.txt AC 156 ms 8612 KB
01_rand_08.txt AC 160 ms 8368 KB
01_rand_09.txt AC 151 ms 8564 KB
01_rand_10.txt AC 140 ms 8396 KB
01_rand_11.txt AC 142 ms 8596 KB
01_rand_12.txt AC 131 ms 8368 KB
01_rand_13.txt AC 135 ms 8484 KB
01_rand_14.txt AC 133 ms 8408 KB
01_rand_15.txt AC 139 ms 8536 KB
01_rand_16.txt AC 135 ms 8408 KB
01_rand_17.txt AC 127 ms 8368 KB
01_rand_18.txt AC 132 ms 8412 KB
01_rand_19.txt AC 135 ms 8540 KB
10_min_01.txt AC 126 ms 8416 KB
10_min_02.txt AC 128 ms 8536 KB