提出 #73293983


ソースコード 拡げる

N=int(input())
S=[]
M=0
for i in range(N) :
    S.append(input())
    M=max(M,len(S[-1]))
for i in range(N) :
    k=(M-len(S[i]))//2
    Y="."*k
    print(Y+S[i]+Y)

提出情報

提出日時
問題 B - Center Alignment
ユーザ Youteru
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 173 Byte
結果 AC
実行時間 49 ms
メモリ 80396 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 10
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt
All 00_sample_01.txt, 00_sample_02.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 02_min_01.txt, 03_max_01.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 49 ms 79608 KiB
00_sample_02.txt AC 49 ms 79492 KiB
01_random_01.txt AC 49 ms 80276 KiB
01_random_02.txt AC 48 ms 79964 KiB
01_random_03.txt AC 48 ms 79692 KiB
01_random_04.txt AC 48 ms 80036 KiB
01_random_05.txt AC 48 ms 79988 KiB
01_random_06.txt AC 47 ms 79892 KiB
02_min_01.txt AC 47 ms 79492 KiB
03_max_01.txt AC 48 ms 80396 KiB