提出 #73292243


ソースコード 拡げる

n = int(input())
s = [list(input()) for _ in range(n)]
mx = -1

for i in s:
	mx = max(mx,len(i))

for i in s:
	diff = (mx-len(i))//2
	s = ['.']*diff
	s += i
	s += ['.']*diff
	print("".join(s))

提出情報

提出日時
問題 B - Center Alignment
ユーザ nemuri_cp
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 204 Byte
結果 AC
実行時間 48 ms
メモリ 80528 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 48 ms 79700 KiB
00_sample_02.txt AC 47 ms 79800 KiB
01_random_01.txt AC 47 ms 80300 KiB
01_random_02.txt AC 47 ms 80472 KiB
01_random_03.txt AC 47 ms 79680 KiB
01_random_04.txt AC 47 ms 80068 KiB
01_random_05.txt AC 47 ms 80228 KiB
01_random_06.txt AC 46 ms 79816 KiB
02_min_01.txt AC 46 ms 79560 KiB
03_max_01.txt AC 47 ms 80528 KiB