結果

問題 No.1764 Square
ユーザー mrngmrng
提出日時 2021-11-27 14:19:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 1,017 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 71,684 KB
最終ジャッジ日時 2023-09-12 16:39:44
合計ジャッジ時間 2,375 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,564 KB
testcase_01 AC 95 ms
71,488 KB
testcase_02 AC 95 ms
71,428 KB
testcase_03 AC 95 ms
71,316 KB
testcase_04 AC 96 ms
71,548 KB
testcase_05 AC 94 ms
71,560 KB
testcase_06 AC 96 ms
71,684 KB
testcase_07 AC 96 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
from collections import deque
q = [['A','E'],['B'],['C'],['D']]
for i in range(4):
	q[i] = deque(q[i])
for i in range(k):
	q[(i+1)%4].append(q[i%4].popleft())
for i in range(4):
	print(''.join(q[i]))
0