結果

問題 No.1764 Square
ユーザー titan23
提出日時 2022-04-01 18:52:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 55,372 KB
最終ジャッジ日時 2024-11-19 14:47:43
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
from collections import deque

##################

k = int(input())

q = [deque(['A','E']), deque(['B']), deque(['C']), deque(['D'])]

for i in range(k):
  v = q[i%4].popleft()
  q[(i+1)%4].append(v)

for i in range(4):
  print(''.join(map(str, q[i])))
0