結果

問題 No.1764 Square
ユーザー dangodango
提出日時 2023-06-12 20:13:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 71,388 KB
最終ジャッジ日時 2023-09-02 14:00:53
合計ジャッジ時間 1,996 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,260 KB
testcase_01 AC 76 ms
71,256 KB
testcase_02 AC 72 ms
71,160 KB
testcase_03 AC 70 ms
71,076 KB
testcase_04 AC 72 ms
70,968 KB
testcase_05 AC 72 ms
71,312 KB
testcase_06 AC 71 ms
71,388 KB
testcase_07 AC 71 ms
71,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

queues = [["A", "E"], ["B"], ["C"], ["D"]]
K = int(input())
for R in range(K):
  queues[(R + 1) % 4].append(queues[R % 4][0])
  del queues[R % 4][0]
for R in queues:
  print(''.join(R))
0