結果

問題 No.1764 Square
ユーザー ygd.ygd.
提出日時 2021-11-30 23:56:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 634 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 8,592 KB
最終ジャッジ日時 2023-09-16 22:09:06
合計ジャッジ時間 1,032 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,484 KB
testcase_01 AC 19 ms
8,472 KB
testcase_02 AC 19 ms
8,504 KB
testcase_03 AC 19 ms
8,428 KB
testcase_04 AC 19 ms
8,452 KB
testcase_05 AC 19 ms
8,564 KB
testcase_06 AC 19 ms
8,592 KB
testcase_07 AC 19 ms
8,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#input = sys.stdin.readline #文字列につけてはダメ
input = sys.stdin.buffer.readline #文字列につけてはダメ
#sys.setrecursionlimit(1000000)
#import bisect
#import itertools
#import random
#from heapq import heapify, heappop, heappush
#from collections import defaultdict
from collections import deque
#import copy


def main():
    N = int(input())
    Q = []
    Q.append('AE')
    Q.append('B')
    Q.append('C')
    Q.append('D')
    for i in range(N):
        old = Q[i%4]
        Q[i%4] = old[1:]
        p = old[0]
        Q[(i+1)%4] += p
    print(*Q,sep='\n')
if __name__ == '__main__':
    main()
0