提出 #56576968


ソースコード 拡げる

N = int(input())
S = []
S.append(input())
M = len(S[0])
for i in range(1,N):
  S.append(input())
  if len(S[i]) < len(S[i-1]):
    S[i] = S[i] + "*"*(len(S[i-1])-len(S[i]))
  M = max(M,len(S[i]))

for i in range(M):
  T = ""
  for j in range(N):
    if i > len(S[j])-1:
      continue
    T = S[j][i] + T
  print(T)

提出情報

提出日時
問題 B - Vertical Writing
ユーザ d5jbnk
言語 Python (PyPy 3.10-v7.3.12)
得点 200
コード長 331 Byte
結果 AC
実行時間 61 ms
メモリ 82036 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 21
セット名 テストケース
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, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 56 ms 76656 KiB
00_sample_02.txt AC 54 ms 76432 KiB
01_random_01.txt AC 58 ms 80920 KiB
01_random_02.txt AC 57 ms 80932 KiB
01_random_03.txt AC 57 ms 80932 KiB
01_random_04.txt AC 56 ms 76468 KiB
01_random_05.txt AC 58 ms 81160 KiB
01_random_06.txt AC 60 ms 82036 KiB
01_random_07.txt AC 60 ms 81024 KiB
01_random_08.txt AC 58 ms 81156 KiB
01_random_09.txt AC 58 ms 81144 KiB
01_random_10.txt AC 57 ms 76320 KiB
01_random_11.txt AC 58 ms 81120 KiB
01_random_12.txt AC 56 ms 76572 KiB
01_random_13.txt AC 61 ms 80916 KiB
01_random_14.txt AC 58 ms 80836 KiB
01_random_15.txt AC 58 ms 81024 KiB
02_handmade_01.txt AC 54 ms 76328 KiB
02_handmade_02.txt AC 55 ms 76484 KiB
02_handmade_03.txt AC 59 ms 81400 KiB
02_handmade_04.txt AC 58 ms 80848 KiB