結果
| 問題 | No.1764 Square | 
| コンテスト | |
| ユーザー |  H20 | 
| 提出日時 | 2021-11-26 22:26:00 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 287 bytes | 
| コンパイル時間 | 320 ms | 
| コンパイル使用メモリ | 82,004 KB | 
| 実行使用メモリ | 54,748 KB | 
| 最終ジャッジ日時 | 2024-06-29 18:09:29 | 
| 合計ジャッジ時間 | 957 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
import collections
Q = [collections.deque() for _ in range(4)]
Q[0].append('A')
Q[0].append('E')
Q[1].append('B')
Q[2].append('C')
Q[3].append('D')
K = int(input())
for i in range(1,K+1):
    temp = Q[(i-1)%4].popleft()
    Q[i%4].append(temp)
for q in Q:
    print(''.join(map(str, q)))
            
            
            
        