Submission #56576968


Source Code Expand

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)

Submission Info

Submission Time
Task B - Vertical Writing
User d5jbnk
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 331 Byte
Status AC
Exec Time 61 ms
Memory 82036 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 21
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, 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
Case Name Status Exec Time Memory
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