Submission #73297849


Source Code Expand

N=int(input())

S = []
L = []

for _ in range(N):
    S_i = input()
    S.append(S_i)
    L.append(len(S_i))

max_L = max(L)

for i in range(N):
    S_i = S[i]
    L_i = L[i]
    k = (max_L-L_i) // 2

    ans = "." * k + S_i + "." * k
    print(ans)

Submission Info

Submission Time
Task B - Center Alignment
User tobakaido
Language Python (PyPy 3.11-v7.3.20)
Score 200
Code Size 267 Byte
Status AC
Exec Time 53 ms
Memory 80196 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
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
Case Name Status Exec Time Memory
00_sample_01.txt AC 53 ms 79852 KiB
00_sample_02.txt AC 52 ms 79660 KiB
01_random_01.txt AC 53 ms 80124 KiB
01_random_02.txt AC 52 ms 79900 KiB
01_random_03.txt AC 51 ms 80032 KiB
01_random_04.txt AC 52 ms 80160 KiB
01_random_05.txt AC 52 ms 80196 KiB
01_random_06.txt AC 51 ms 79856 KiB
02_min_01.txt AC 51 ms 79652 KiB
03_max_01.txt AC 52 ms 80160 KiB