結果

問題 No.2614 Delete ABC
ユーザー StanMarshStanMarsh
提出日時 2024-02-02 12:04:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 511 bytes
コンパイル時間 478 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 59,520 KB
最終ジャッジ日時 2024-02-02 12:04:37
合計ジャッジ時間 1,688 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 38 ms
59,516 KB
testcase_02 AC 40 ms
59,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

inf = float("inf")
# sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip("\r\n")

print = lambda *args, end="\n", sep=" ": sys.stdout.write(
    sep.join(map(str, args)) + end
)


def II():
    return int(input())


def MII(b=0):
    return map(lambda x: int(x) - b, input().split())


def LII(b=0):
    return list(MII(b))


for _ in range(II()):
    n = II()
    res = ["ABAC"]
    for _ in range(n - 2):
        res.append("ABC")
    res.append("BC")
    print("".join(res))
0