結果

問題 No.1764 Square
ユーザー shobonvipshobonvip
提出日時 2022-03-04 15:20:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 1,671 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,832 KB
最終ジャッジ日時 2023-09-25 15:05:51
合計ジャッジ時間 3,157 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,636 KB
testcase_01 AC 89 ms
71,752 KB
testcase_02 AC 91 ms
71,704 KB
testcase_03 AC 91 ms
71,652 KB
testcase_04 AC 90 ms
71,608 KB
testcase_05 AC 92 ms
71,672 KB
testcase_06 AC 90 ms
71,832 KB
testcase_07 AC 92 ms
71,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
q = [deque() for i in range(4)]
q[0].append("A")
q[1].append("B")
q[2].append("C")
q[3].append("D")
q[0].append("E")

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

for i in range(4):
	print("".join(q[i]))
0