結果

問題 No.2614 Delete ABC
ユーザー 学ぶマン
提出日時 2025-09-07 21:24:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,044 KB
実行使用メモリ 52,736 KB
最終ジャッジ日時 2025-09-07 21:24:17
合計ジャッジ時間 1,341 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
sys.setrecursionlimit(10**8)
sys.set_int_max_str_digits(0)

T = int(input())

for i in range(T):
    N = int(input())

    if N%2 == 0:
        ans = 'ABACBC'*(N//2)
    else:
        N -= 3
        ans = 'ABACBACBC' + 'ABACBC'*(N//2)

    print(ans)
0