結果

問題 No.2614 Delete ABC
コンテスト
ユーザー StanMarsh
提出日時 2024-02-02 12:04:24
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 511 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 194 ms
コンパイル使用メモリ 85,284 KB
実行使用メモリ 59,660 KB
最終ジャッジ日時 2026-04-15 02:06:38
合計ジャッジ時間 987 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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